Skip to main content
POST
/
api
/
chat
/
send
Send chat message and receive SSE stream
curl --request POST \
  --url https://app.narrativebanking.com/api/chat/send \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "sessionId": "123",
  "userId": "1005",
  "payloadType": "text",
  "payload": {
    "text": "How can I reduce costs?"
  }
}
'
{
  "detail": "Unauthorized",
  "request_id": "req_abc123"
}

Authorizations

Authorization
string
header
required

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

Body

application/json
sessionId
string
required
userId
string
required
payloadType
string
required
payload
object
required

Response

SSE stream accepted