Skip to main content
POST
Send a message in a conversation

Authorizations

Authorization
string
header
required

Prefix your API key with "Bearer ". Example: Authorization: Bearer sapi_key_...

Path Parameters

id
string
required

Conversation ID

Body

application/json

Message payload

account_id
string
required
Example:

"acc_abc123"

attachment_url
string

AttachmentURL is a single-attachment shorthand. Ignored when attachments is non-empty; its type is inferred from the URL extension.

Deprecated: use Attachments instead, which supersedes it and supports one or many items.

Example:

"https://cdn.example.com/photo.jpg"

attachments
object[]

Attachments sends one or more media items, each as its own message bubble.

buttons
object[]

Buttons renders a button template (1-3 buttons); uses text as the bubble body. On WhatsApp every button must be type postback with a unique payload.

cards
object[]

Cards renders a generic/carousel template (up to 10 cards).

list_button
string

ListButton is the label on the button that opens the list. Required with list_sections, max 20 characters.

Example:

"View options"

list_sections
object[]

ListSections renders a tappable list behind a single button, for menus wider than the 3 buttons a reply-button message allows (up to 10 rows in total, across up to 10 sections). WhatsApp only; requires text and list_button.

message_tag
string

MessageTag sends the DM outside the standard 24-hour window. Instagram connected through Instagram Login only, which accepts only HUMAN_AGENT and extends the window to 7 days; any other value returns 400 validation.invalid_message_tag. On Facebook, on Instagram connected through Facebook Login, and on every other platform, the DM is sent untagged and the 24-hour window applies.

Example:

"HUMAN_AGENT"

quick_replies
object[]

QuickReplies renders up to 13 tappable chips above the keyboard; requires text.

reply_to_message_id
string

ReplyToMessageID makes the first sent bubble a reply to a specific prior message (Meta reply_to.mid). Instagram/Facebook only.

Example:

"m_1234567890"

text
string
Example:

"Thanks for your message!"

Response

Message sent with ID

message_id
string

MessageID is the first sent message's ID; for a multi-attachment send it is only the first of several IDs.

Deprecated: use MessageIDs instead.

Example:

"m_1234567890"

message_ids
string[]

MessageIDs holds every sent message's ID, in send order.

Example:
success
boolean
Example:

true