Skip to main content

Media

Quick guide​

The media library holds the files you attach to messages, templates and campaigns.

  • Upload a file with POST /media, as multipart/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 id you 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: the mediaKey comes with the INBOUND event of the webhook.

Use cases: UC-021: Upload and Manage Media · UC-017: Download Inbound Media