Skip to main content
POST
/
api
/
conversations
/
{id}
/
messages
Send a message to a conversation
curl --request POST \
  --url http://localhost:3000/api/conversations/{id}/messages \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "message": "Hello, how can I get a refund?"
}
'
{
  "response": "<string>",
  "usage": {}
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

Conversation ID

Body

application/json
message
string
required

Message content

Required string length: 1 - 10000
Example:

"Hello, how can I get a refund?"

Response

Message sent successfully

response
string
required

Assistant response text

usage
object

Token usage