POST
/
v1
/
session
/
client
Create a new session
curl --request POST \
  --url https://api.agentreach.ai/v1/session/client \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "agentId": "<string>",
  "channel": {
    "type": "web-ui",
    "slackUserId": "<string>",
    "email": "<string>"
  },
  "message": "<string>",
  "userId": "<string>"
}'
{
  "id": "<string>",
  "sessionId": "<string>",
  "message": "<string>",
  "createdAt": "2023-11-07T05:31:56Z",
  "fromAgent": true
}

Authorizations

Authorization
string
header
required

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

Body

application/json

Details of the session to create.

The body is of type object.

Response

200
application/json

Session created successfully.

The response is of type object.