Skip to main content
POST
/
api
/
chat
/
session
/
create
Create chat session
curl --request POST \
  --url https://app.narrativebanking.com/api/chat/session/create \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "chatType": "free",
  "userId": "1005"
}
'
{
  "sessionId": "<string>",
  "chatType": "<string>",
  "createdAt": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

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

Body

application/json
chatType
enum<string>
required
Available options:
free,
metric,
opp
userId
string
required

Response

Session created

sessionId
string
chatType
string
createdAt
string<date-time>