Skip to main content
POST
/
core
/
conversations
/
{conversation_id}
/
messages
Send a message
curl --request POST \
  --url https://api.anyreach.ai/core/conversations/{conversation_id}/messages \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "text": "Where is my order?",
  "interactivity": "rich"
}
'
{
  "conversation_id": "<string>",
  "reply": "<string>",
  "tool_calls": [
    {}
  ],
  "widgets": [
    {}
  ]
}

Authorizations

Authorization
string
header
required

Personal access token. See Authentication.

Path Parameters

conversation_id
string
required

The text conversation to send the message to.

Body

application/json
text
string
required

The user's message. Cannot be empty.

interactivity
enum<string>
default:plain

plain returns text only; rich also returns any UI widgets the agent emitted this turn.

Available options:
plain,
rich

Response

The agent's reply.

conversation_id
string

The conversation the reply belongs to.

reply
string

The agent's text response for this turn.

tool_calls
object[]

The tools the agent invoked this turn and their results, paired by call_id. Empty when no tools were used.

widgets
object[]

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.