Skip to main content
POST
/
api
/
agent
/
sendChatMsg
Send a chat message
curl --request POST \
  --url http://localhost:3000/api/agent/sendChatMsg \
  --header 'Content-Type: application/json' \
  --header 'x-access-token: <api-key>' \
  --data '
{
  "message": "<string>",
  "sessionId": "<string>"
}
'
{
  "success": true,
  "messageId": "<string>"
}

Authorizations

x-access-token
string
header
required

JWT token passed in x-access-token header

Body

application/json
message
string
required

Chat message to send

sessionId
string

Session identifier

Response

Message sent successfully

success
boolean
messageId
string

ID of the sent message