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

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

Server-sent events stream