v1

latestOpenAPI 3.0.02026-07-26592893.0 KB
Media Management

Upload Media

Upload media (images, documents, etc.) to the WhatsApp Cloud API. The response will provide a media_id that you can use in messages or templates.

post/{version}/{phone_number_id}/media

Path parameters

versionstring required
Example:v24.0
phone_number_idstring required
Example:100594425479261

The ID of the phone number.

Headers

Authorizationstring required

Provide your Access Token. Format: YOUR_API_KEY

Response

Media Uploaded Successfully

idstring

The Media ID (use this ID to send the media in messages).

Example response

{
  "id": "13658294123"
}