Skip to main content
POST
Upload media

Authorizations

x-api-key
string
header
required

Your Pilot Status API key (ps_...). You may also send Authorization: Bearer ps_... or ?access_token=ps_....

Path Parameters

phoneNumberId
string
required

Meta phone-number id of the number linked to your API key.

Body

multipart/form-data
messaging_product
enum<string>
required

Always whatsapp.

Available options:
whatsapp
file
file
required

The media file.

type
string

MIME type, e.g. image/jpeg.

Response

Meta Graph API response.

id
string

Media id.