Send a message
Appends a user message to a text conversation, runs one agent turn, and returns the agent’s reply.
Constraints: this endpoint applies to text conversations only, and the conversation must be active (status triggered, ringing, or in_progress). Other channels, or conversations that have ended, return 409.
Set interactivity to rich to also receive any UI widgets the agent emitted this turn. Requires a token with write access.
Authorizations
Personal access token. See Authentication.
Path Parameters
The text conversation to send the message to.
Body
The user's message. Cannot be empty.
plain returns text only; rich also returns any UI widgets the agent emitted this turn.
plain, rich Response
The agent's reply.
The conversation the reply belongs to.
The agent's text response for this turn.
The tools the agent invoked this turn and their results, paired by call_id. Empty when no tools were used.
Included only when interactivity is rich. The UI widgets the agent emitted this turn; an empty array if none. Each item is { "type": <widget_type>, "data": { ... } }. Widget types: detail, carousel, info, list, action_grid, collect_otp, collect_phone_number, order_tracker, comparison.

