GET
/
v2
/
agents
/
{agent_id}
/
convos
curl --request GET \
  --url https://eu-vg-edge.moeaymandev.workers.dev/v2/agents/{agent_id}/convos \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "message": "Agent conversations retrieved successfully",
  "data": [
    {
      "ID": "<string>",
      "userID": "<string>",
      "userName": "<string>",
      "userEmail": "jsmith@example.com",
      "userImage": "<string>",
      "userPhone": "<string>",
      "userBrowser": "<string>",
      "userProfilePic": "<string>",
      "origin": "web-chat",
      "messagesNum": 123,
      "interactionsNum": 123,
      "ts": 123,
      "tags": [
        "<string>"
      ],
      "convoTimeSeconds": 123,
      "firstMessageTS": 123,
      "lastMessageTS": 123,
      "userPlatform": "<string>",
      "state": "requested_chat",
      "chatAssignedTo": "<string>",
      "lastModified": 123,
      "sessionsNum": 123
    }
  ]
}

Authorizations

Authorization
string
header
required

Agent/Workspace secret API key as bearer token.

Path Parameters

agent_id
string
required

The ID of the agent to retrieve its conversations

Query Parameters

page
integer

Page of the results to return, default is 1, query per page is 20

Response

200
application/json

Agent conversations retrieved

The response is of type object.