GET
/
api
/
v2
/
data-sources
curl --request GET \
  --url https://app.livechatai.com/api/v2/data-sources \
  --header 'Authorization: Bearer <token>'
{
  "status": "success",
  "data": {
    "agentId": "clx1234567890abcdef",
    "items": [
      {
        "id": "ds_1234567890",
        "title": "Company Overview",
        "text": "Our company specializes in...",
        "url": "https://example.com/about",
        "source": "TEXT",
        "status": "COMPLETED",
        "characterCount": 1250,
        "createdAt": "2024-01-15T10:30:00Z",
        "updatedAt": "2024-01-20T14:45:00Z"
      }
    ],
    "totalCount": 250,
    "pages": {
      "page": 1,
      "perPage": 10,
      "totalPages": 25,
      "hasPrevious": false,
      "hasNext": true,
      "previous": null,
      "next": 2
    }
  }
}

Authorizations

Authorization
string
header
required

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

Query Parameters

agentId
string
required

Unique identifier of the agent

Example:

"clx1234567890abcdef"

source
enum<string>

Filter by source type to get specific data source types

Available options:
WEBSITE,
TEXT,
QA,
PDF,
DOCX,
IMAGE,
ALL
Example:

"ALL"

page
integer

Page number for pagination (default: 1)

Required range: x >= 1
Example:

1

limit
integer

Number of data sources per page (default: 10, max: 100)

Required range: 1 <= x <= 100
Example:

10

Response

200
application/json

Successfully retrieved data sources list

The response is of type object.