Send Message
Sends an inbound customer message into the chat engine and returns the agent’s reply synchronously.
session_id is optional. If omitted, the engine resolves the customer’s active session for this agent (creating or resuming as needed), so a typical integration only needs agent_uuid, customer_id, and content.
For a customer answering an interactive message the agent sent, see Interactive messages. For fire-and-forget delivery instead of waiting on this response, use Send Message (Async).
Authorizations
Body
Optional. Which of your own channels the message came in on. Without session_id, the message goes to the customer's active session on this channel (a new one is created if there is none). With session_id, it must be that session's channel or the request fails with 422 channel_mismatch. Omit it to use the session with no channel, as before.
whatsapp, instagram, web, app "whatsapp"
Free-text context entries for a newly created session. Only the most recent 5 non-empty strings are retained. Only applied when this request creates a new session — use Inject Context to add context to an existing one.
message for a normal text message (default). interaction_response to answer an interactive message the agent sent — see Interactive messages.
message, interaction_response "message"
Shorthand answer for a simple option tap — the id of the selected option. Send this or response, not both. See Interactive messages.
"opt_confirm"
Structured answer to a pending interactive message. Send this or option_id, never both. See Interactive messages.
Declares which interactive message types your client can render, so the agent only offers ones you can display. See Interactive messages.
