GET
/
v1
/
agents
/
{agentId}
/
sessions
Get all sessions for an agent
curl --request GET \
  --url https://api.agentreach.ai/v1/agents/{agentId}/sessions \
  --header 'Authorization: Bearer <token>'
[
  {
    "id": "<string>",
    "agentId": "<string>",
    "completed": true,
    "endUserId": "<string>",
    "channelType": "<string>",
    "channel": {
      "type": "web-ui",
      "slackUserId": "<string>",
      "email": "<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.

Path Parameters

agentId
string
required

Unique identifier for the agent.

Response

200
application/json

List of sessions successfully retrieved.

The response is of type object[].