The Media Object
Attributes
A unique identifier for the media file.
The name of the uploaded file.
The MIME type of the media. Valid types: JPG, PNG, MP4, GIF, PDF, text.
The URL of the media file on Plivo’s system.
Size of the media in bytes. Maximum: 2MB per file.
Timestamp when the media was uploaded.
Unused media (not sent in an MMS) is automatically deleted after 6 hours. Media sent in MMS messages is retained for 1 year.
Example Media Object
Upload Media
Upload media files to be used in MMS messages. Supports up to 10 attachments per request, with a maximum of 2MB per file.Headers
SetContent-Type to multipart/form-data.
Arguments
One or more files to upload (max 10 files per request).
Response
Retrieve Media
Get details of a specific media file by its ID.Arguments
The unique identifier of the media to retrieve.
List All Media
Retrieve a paginated list of all uploaded media files.Arguments
Number of results per page. Default: 20, Max: 20.
Number of records to skip. Default: 0.