Use this API to upload, retrieve, or delete media.
If you use the media upload process rather than linking to a media URL, the file must be uploaded to the media volume. Once the upload is complete, you can send a message using the media ID.
See the Supported Content-Types section below for information about supported Content-Type you can upload.
Request BodyPOST body of the API request must contain the binary media data and the Content-Type header must be set to the type of the media being uploaded.
Maximum allowed media sizeThe maximum allowed size for uploading is 10 MB and in case of the large files use the URL option in send message APIs directly.
Supported Content-Types
Media | Supported Content-Types |
|---|---|
audio |
|
document | Any valid MIME-type |
image |
|
sticker | image/webp |
video | video/mp4 , video/3gpp
|