GET
/
chatbots
/
{chatbotId}
/
knowledge-base
/
data-sources
curl --request GET \
  --url https://api.chatling.ai/v2/chatbots/{chatbotId}/knowledge-base/data-sources \
  --header 'Authorization: Bearer <token>'
{
    {
    "status": "success",
    "data": {
        "pages": {
            "current_page": 1,
            "last_page": 3,
            "per_page": 25
        },
        "sources": [
            {
                "id": "321e979b-a174-89fc-25de-f0b31dbd659f",
                "type": "link",
                "status": "processed",
                "characters": 6232,
                "data": {
                    "url": "https://chatling.ai",
                    "page_title": "No-Code AI Chatbot for Your Website | Chatling"
                },
                "created_at": "2024-06-15T12:23:41"
            },
        ]
    }
}
}

Request parameters

Path

chatbotId
string
required

The chatbot ID.

Query

page
integer
default: "1"

The page number for pagination.

sort
string
default: "date_desc"

The sort order. Possible values:

  • date_desc: Sort by date in descending order.
  • date_asc: Sort by date in ascending order.
type
string

Filter by the type of the data source. Possible values are link, text, faq, document.

Leave blank to get all types of data sources.

Response

status
string

The status of the request. Will be success if the request was successful, otherwise error.

data
object
{
    {
    "status": "success",
    "data": {
        "pages": {
            "current_page": 1,
            "last_page": 3,
            "per_page": 25
        },
        "sources": [
            {
                "id": "321e979b-a174-89fc-25de-f0b31dbd659f",
                "type": "link",
                "status": "processed",
                "characters": 6232,
                "data": {
                    "url": "https://chatling.ai",
                    "page_title": "No-Code AI Chatbot for Your Website | Chatling"
                },
                "created_at": "2024-06-15T12:23:41"
            },
        ]
    }
}
}