Get knowledge sources
Changed onThis endpoint returns a paginated list of knowledge sources for a specific AI copilot. Corresponds to liveblocks.getKnowledgeSources.
Request
- Base URL: https://api.liveblocks.io/v2
- URL: https://api.liveblocks.io/v2/ai/copilots/{copilotId}/knowledge
- Auth: none declared
Path parameters
ID of the AI copilot
Query parameters
A limit on the number of knowledge sources to be returned. The limit can range between 1 and 100, and defaults to 20.
A cursor used for pagination. Get the value from the nextCursor response of the previous page.
Response
Success. Returns the list of knowledge sources.
Example response
{
"nextCursor": null,
"data": [
{
"id": "ks_abc123",
"type": "ai-knowledge-web-source",
"createdAt": "2024-06-01T12:00:00.000Z",
"updatedAt": "2024-06-01T12:00:00.000Z",
"lastIndexedAt": "2024-06-01T12:00:00.000Z",
"status": "ready",
"link": {
"url": "https://docs.example.com",
"type": "crawl"
}
}
]
}Changes
- breaking
for the
queryrequest parameterlimit, the type changed fromnumbertointeger - breaking
response property
nextCursorlist-of-types was widened by adding typesnullto media typeapplication/jsonof response200 - breaking
added to the
/response propertyoneOflist for the response status - info
the response property
became required for the status - info
the response property
became required for the status - info
added discriminator to
/response property for the response status - info
removed
subschema #1: WebKnowledgeSourcesubschema #2: FileKnowledgeSourcefrom the/response propertyoneOflist for the response status
- breaking
- breaking
added
subschema #1: WebKnowledgeSourcesubschema #2: FileKnowledgeSourceto the/response propertyoneOflist for the response status - info
removed
subschema #1subschema #2from the/response propertyoneOflist for the response status
- breaking