Upload media

Uploads media that can later be sent in WhatsApp messages. This endpoint interfaces with Meta's WhatsApp Business API media endpoints. All media files sent through this endpoint are encrypted and persist for 30 days.

For supported media types and size limitations, please refer to Supported Media Types.

For more information, refer to Meta's WhatsApp Cloud API Media documentation.

Note that all interactive messages cannot send images, documents, videos, or audio using a Media ID in the header section. These elements must be sent using a link.

Path Params
string
required

Phone number in E.164 format to use for the upload.

Body Params
file
required

The media file to upload. Only one file is supported. If multiple files are uploaded, only the first file will be processed.

Responses

Language
Credentials
Header
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json