Skip to main content

Send a reply to a conversation

POST 

/api/partner-gateway/inbox/conversations/reply

Sends a reply in an existing conversation, on the channel the conversation runs on: you do not choose the channel.

  • Body: chatId and a non-blank message, at least one attachment, or both.
  • Attachments: every attachments[].mediaId must be a media item of your own library (see the Media endpoints).
  • 202 means accepted and queued for delivery. The reply is handed on for delivery before the response is sent, so a refusal at that point comes back at once as 400 or 502. Track the delivery with the delivery-status webhook, if you have configured one.
  • Reply window: some channels accept replies only within a time window, such as the 24 hours of WhatsApp. A reply sent outside it may fail to be delivered.
  • replyTo is the message of the conversation you reply to. On a WhatsApp reply that carries text it must be a message of this conversation; a reply with attachments only ignores it.

On WhatsApp a 502 can arrive after part of the reply was sent. The text and each attachment go out as separate messages, text first, so a retry sends that part again. On Instagram, Facebook Messenger and chatbot conversations a 502 means nothing was sent, and the request can be retried.

Maximum text length on each channel
ChannelCharacters
WhatsApp4096
RCS3072
Facebook Messenger2000
Instagram1000

Request​

Responses​

Reply accepted and queued for delivery. No response body.