Skip to main content
POST

Authorizations

X-API-Key
string
header
required

Project API key for authentication. This is the recommended authentication method.

Get your API key from the Kapso dashboard under Integrations > API keys.

Path Parameters

phone_number_id
string
required

WhatsApp Business Phone Number ID

Body

multipart/form-data
file
file
required

Media file to upload

messaging_product
enum<string>
required

Always "whatsapp"

Available options:
whatsapp

Response

Media uploaded successfully

id
string

Media ID to use when sending messages

Example:

"4490709327384033"