PPylon Developers
ApiA I Agents

List user's conversations

Returns a paginated list of conversations for the currently authenticated user.

GET
/api/v1/agents/conversations
AuthorizationBearer <token>

Enter your bearer token from the Pylon Auth API.

In: header

Query Parameters

page?integer
Default1
Formatint32
pageSize?integer
Default20
Formatint32
sort?string
status?unknown
Value in"Active" | "Completed" | "Abandoned" | null

Response Body

application/json

application/json

curl -X GET "https://loading/api/v1/agents/conversations"
{
  "data": [
    {
      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
      "userId": "2c4a230c-5085-4924-a3e1-25fb4fc5965b",
      "agentType": "string",
      "status": "string",
      "createdAt": "2019-08-24T14:15:22Z",
      "endedAt": "2019-08-24T14:15:22Z",
      "messages": [
        {
          "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
          "role": "string",
          "content": "string",
          "createdAt": "2019-08-24T14:15:22Z"
        }
      ]
    }
  ],
  "meta": {
    "totalCount": 0,
    "page": 0,
    "pageSize": 0,
    "totalPages": 0,
    "hasNext": true,
    "hasPrevious": true
  },
  "links": null
}
{
  "code": "string",
  "message": "string"
}