Media
Upload a media file
List company media
Get a media item
Delete a media item
Download media file
Quick guide
The media library holds the files you attach to messages, templates and campaigns.
- Upload a file with
POST /media, asmultipart/form-data, up to about 10 MB. Its type (image, video, audio or document) is detected from its content, and large images are scaled down. - Use the
idyou get back wherever a message or a campaign refers to a media item. - Delete with
DELETE /media/{id}only the files that no scheduled campaign or template still uses: the deletion is final. - Download a file that a contact sent you with
GET /files/{mediaKey}, on the messaging API: themediaKeycomes with theINBOUNDevent of the webhook.
Use cases: UC-021: Upload and Manage Media · UC-017: Download Inbound Media