GET
/
backend
/
knowledgebase
/
datasource
/
:bot_id
curl --location --request GET 'https://api.opencopilot.so/backend/knowledgebase/datasource/:bot_id?limit=:limit&offset=:offset' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9' \
{
    "pdf_sources": [],
    "web_sources": [
        {
            "chatbot_id": "Tue, 19 Mar 2024 23:14:09 GMT",
            "source": "https://en.wikipedia.org/wiki/Utopia_(disambiguation)",
            "status": "SUCCESS",
            "updated_at": null
        },
        {
            "chatbot_id": "Tue, 19 Mar 2024 23:14:01 GMT",
            "source": "https://en.wikipedia.org/wiki/Utopia_(More)",
            "status": "SUCCESS",
            "updated_at": null
        }
    ]
}

Get Knowledge from Data Source

This endpoint allows you to retrieve knowledge from a specific data source for a given bot. You can specify the limit and offset parameters to control the number of results and the starting point for the results.

Important: This endpoint requires authentication. You must include a valid Authorization header with a Bearer token in the request.

param
string
required

The unique identifier for the bot you want to fetch records from. This is a required parameter.

limit
integer
default: "10"

The maximum number of documents to return in the response. If not provided, the default value is 10.

offset
integer
default: "0"

The number of documents to skip before returning the results. Used for pagination. If not provided, the default value is 0.