Skip to main content
POST
Error

Authorizations

X-Api-Key
string
header
required

Body

to_phone
string
required
Example:

"{recipient_phone}"

type
enum<string>
required

Use audio for uploaded audio files and voice for recorded voice notes.

Available options:
text,
image,
voice,
audio,
document
sender_number_id
integer

Required when sender_phone is not provided.

sender_phone
string

Required when sender_number_id is not provided.

Example:

"{sender_phone}"

content
string | null

Message body for text; optional caption for image, document, and audio. Legacy voice captions are accepted for compatibility.

duration
integer | null

Required for voice and limited to 1–300 seconds. Optional for audio with a minimum of 1 and no 300-second limit. Omit for other types.

Required range: x >= 1
file_name
string | null
file_size
integer | null
file_type
string | null

Response

Message accepted and logged.

data
object