Messaging
Send Session Messages
Send a free-form text, media, location, or interactive message within an active 24-hour WhatsApp session 🗺️
POST
Send Session Messages
Session messages are free-form messages with no pre-approval required. You can send text, attachments, location pins, and interactive messages (list menus, reply buttons, WhatsApp Flows). The only constraint is WhatsApp’s 24-hour eligibility window.
Rate limit: 200 requests/second. Exceeding this returns
The
The 24-hour rule
Endpoint
429 Too Many Requests.
Request body
Response
id uniquely identifies the message. Use it to correlate delivery status webhook events.
callbackData
SetcallbackData to any JSON value up to 1024 bytes. Connectly echoes it back in every webhook event tied to this message:
- Delivery status events:
sent,delivered,read,delivery_failed - Inbound replies that reference this message: quoted replies, button & list replies, reactions
callbackData. Exceeding 1024 bytes returns a 400 error.
Examples
Plain text message
Plain text message
Image attachment
Image attachment
Video attachment
Video attachment
Audio attachment
Audio attachment
Document attachment
Document attachment
Location message
Location message
Interactive list message
Interactive list message
Use You can also use a media header instead of text. Both list and reply-button messages share the same header structure:For a document header with a filename:
listMessage to present a scrollable menu. See WhatsApp interactive list docs for full spec.WhatsApp Flow message
WhatsApp Flow message
Send a published WhatsApp Flow with
flowMessage. The body comes from the top-level text. This example uses navigate mode; for data_exchange, the full field reference, and endpoint setup, see Send WhatsApp Flows.Send from a specific number (multi-sender)
Send from a specific number (multi-sender)
Include the
sender object when your business has more than one WhatsApp number.Targeting by BSUID
To target a customer identified by a Business-Scoped User ID, setrecipient.userId to the bare BSUID (e.g. US.13491208655302741918). See Business-scoped user IDs (BSUID) for full details.
Error responses
See Error codes for the full list of error types and codes, including
ERROR_CODE_MESSAGE_OUTSIDE_OF_ELIGIBILITY_WINDOW.