v1

latestOpenAPI 3.0.02026-07-2491237338.9 KB
WhatsApp Media

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.

post/whatsapp/media/{phoneNumber}/upload

Path parameters

phoneNumberstring required
Example:+16315551111

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

Response

Successfully uploaded the media.

idstring

The ID of the uploaded media that can be used in subsequent message requests.