Upload WhatsApp Media

Upload media for use in WhatsApp template examples.

📘

Info:

This endpoint uploads media files for use as samples when submitting new media type templates. Samples are required whenever your submitted template will contain images, videos or documents.

Add the returned handle h to the header_handle field when creating media type templates via the Create Template endpoint.

Query Params
string
enum
required

The MIME type of the file being uploaded.

Allowed:
Body Params

Upload media files to the WhatsApp platform. Once uploaded, you can use an uploaded file's handle to create a media template.

file
required
Headers
string
enum
Defaults to multipart/form-data

Generated from available response content types

Allowed:
Responses

Language
Credentials
OAuth2
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
multipart/form-data
text/plain