This endpoint is rate-limited to 5 requests per second per user.
Request Body
sender_idinteger required
The ID of the WhatsApp sender to send from (obtained from the Get Senders endpoint)
recipient_phone string required
The recipient’s phone number in international format (e.g., +1234567890)
message string
The message content to send (max 4096 characters). Optional when media_url is provided — in that case it is used as the media caption. Audio files are the exception: WhatsApp does not support captions on audio, so the text is ignored when media_url points to an audio file. Either message or media_url is required.
media_url string
Optional public URL of a file to send — an image, audio file, video, or document. The file must be reachable at a public URL (WhatsApp fetches it at send time). When set, message is used as the caption for images, videos and documents. Audio files cannot carry a caption — if you send an audio file, any message text is ignored. Either message or media_url is required.
filename string
Optional filename shown to the recipient, mainly useful for documents (e.g. invoice.pdf).
Response Fields
successboolean
Whether the message was sent successfully
conversation_id integer
The ID of the conversation associated with this message
message_id integer
The ID of the conversation message record
whatsapp_message_id integer
The ID of the WhatsApp message record
message_sid string
The Twilio message SID for tracking delivery
session_status object
Updated session status after sending the message
Session status properties
is_open boolean
Whether the 24-hour messaging window is currently open
can_send_freeform boolean
Whether freeform messages can be sent right now
requires_template boolean
Whether a template message is required
message string
Human-readable description of the session state
minutes_remaining integer
Minutes remaining in the 24-hour window
expires_at string
ISO 8601 timestamp when the session expires
Error Responses
402 Insufficient Balance Error Response successboolean
false
error string
Insufficient balance. Please top up your account.
error_code string
INSUFFICIENT_BALANCE
403 Session Expired
Error Response
success boolean
false
error string
Message indicating the 24-hour messaging window has expired
error_code string
SESSION_EXPIRED
session_status object
Current session status with is_open, can_send_freeform, requires_template, and message fields
404 Not Found
Error Response
success boolean
false
error string
Sender not found or does not belong to you
error_code string
SENDER_NOT_FOUND
503 Sender Offline
Error Response
success boolean
false
error string
Message indicating the sender is currently offline
error_code string
SENDER_OFFLINE
cURL
JavaScript
Python
cURL (with media)
200 Success
402 Insufficient Balance
403 Session Expired
404 Sender Not Found
422 Invalid Phone
503 Sender Offline
24-Hour Messaging Window
WhatsApp enforces a 24-hour messaging window policy:- When a customer sends a message to your WhatsApp Business number, a 24-hour window opens.
- During this window, you can send freeform messages without restrictions.
- After the window expires, you must use a template message to re-initiate the conversation.
- Each new customer message resets the 24-hour timer.
Notes
- Maximum message length is 4,096 characters (WhatsApp limit).
- A file (image, audio, video, or document) can be attached with
media_url. It must be hosted at a publicly reachable URL — WhatsApp fetches it at send time. When sending media,messageis optional and is used as the caption. Audio is the exception: WhatsApp does not support captions on audio files, so whenmedia_urlpoints to an audio file themessagetext is not sent. - The sender must be
online. Offline senders return a503error. - Message costs are automatically deducted from your account balance.
- Rate limit: 5 requests per second per user.

