Skip to main content
POST
Upload media (Meta shape)

Authorizations

Authorization
string
header
required

Your API key, e.g. sk_live_... or sk_test_....

Headers

Idempotency-Key
string

Optional. Makes this write safe to retry: the same key replays the first response instead of acting twice.

Maximum string length: 255

Path Parameters

version
string
required

Graph API version.

phone_number_id
string
required

The sending number's phone number id.

Body

multipart/form-data
file
file
required
messaging_product
string
Example:

"whatsapp"

Response

Meta-shaped media id.

id
string