AI
Get knowledge source
Changed onThis endpoint returns a specific knowledge source by its ID. Corresponds to liveblocks.getKnowledgeSource.
get/ai/copilots/{copilotId}/knowledge/{knowledgeSourceId}
Request
- Base URL: https://api.liveblocks.io/v2
- URL: https://api.liveblocks.io/v2/ai/copilots/{copilotId}/knowledge/{knowledgeSourceId}
- Auth: none declared
Path parameters
copilotIdstring required
ID of the AI copilot
Example:cp_abc123
knowledgeSourceIdstring required
ID of the knowledge source
Example:ks_abc123
Response
Success. Returns the knowledge source.
Example response
{
"id": "ks_web123",
"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
added to the response body
oneOflist for the response status - info
added response discriminator for the response status
- info
removed
subschema #1: WebKnowledgeSourcesubschema #2: FileKnowledgeSourcefrom the response bodyoneOflist for the response status
- breaking
- breaking
added
subschema #1: WebKnowledgeSourcesubschema #2: FileKnowledgeSourceto the response bodyoneOflist for the response status - info
removed
subschema #1subschema #2from the response bodyoneOflist for the response status
- breaking