AI

Get knowledge source

Changed on

This 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.

OR

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 oneOf list for the response status

    • info

      added response discriminator for the response status

    • info

      removed subschema #1: WebKnowledgeSource subschema #2: FileKnowledgeSource from the response body oneOf list for the response status

    • breaking

      added subschema #1: WebKnowledgeSource subschema #2: FileKnowledgeSource to the response body oneOf list for the response status

    • info

      removed subschema #1 subschema #2 from the response body oneOf list for the response status