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.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required
Defaults to v24.0
string
required

The ID of the phone number.

Body Params
file
required

The media file to upload.

string
required
Defaults to whatsapp
string
required

The MIME type of the media file (e.g., image/jpeg, image/png, application/pdf).

Headers
string
required
Defaults to YOUR_API_KEY

Provide your Access Token. Format: YOUR_API_KEY

Response

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