AI

Create web knowledge source

Changed on

This endpoint creates a web knowledge source for an AI copilot. This allows the copilot to access and learn from web content. Corresponds to liveblocks.createWebKnowledgeSource.

post/ai/copilots/{copilotId}/knowledge/web

Request

  • Base URL: https://api.liveblocks.io/v2
  • URL: https://api.liveblocks.io/v2/ai/copilots/{copilotId}/knowledge/web
  • Auth: none declared

Path parameters

copilotIdstring required

ID of the AI copilot

Example:cp_abc123

Request body

copilotIdstring required
urlstring uri required
type'individual_link' | 'crawl' | 'sitemap' required

Example request

{
  "copilotId": "cp_abc123",
  "url": "https://docs.example.com",
  "type": "crawl"
}

Response

Success. Returns the ID of the created knowledge source.

idstring required

Example response

{
  "id": "ks_abc123"
}

Changes