AI

Get file knowledge source content

Changed on

This endpoint returns the content of a file knowledge source as markdown. This allows you to see what content the AI copilot has access to from uploaded files. Corresponds to liveblocks.getFileKnowledgeSourceMarkdown.

get/ai/copilots/{copilotId}/knowledge/file/{knowledgeSourceId}

Request

  • Base URL: https://api.liveblocks.io/v2
  • URL: https://api.liveblocks.io/v2/ai/copilots/{copilotId}/knowledge/file/{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 content of the file knowledge source as markdown.

idstring required
contentstring required

Example response

{
  "id": "ks_abc123",
  "content": "# Document Title\n\nThis is the content of the uploaded file."
}

Changes

    • info

      api operation id get-file-knowledge-source-content removed and replaced with get-file-knowledge-source-markdown

    • info

      the response property became required for the status

    • info

      the response property became required for the status

    • info

      endpoint added