AI
Create web knowledge source
Changed onThis 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
Example request
{
"copilotId": "cp_abc123",
"url": "https://docs.example.com",
"type": "crawl"
}Response
Success. Returns the ID of the created knowledge source.
Example response
{
"id": "ks_abc123"
}Changes
- breaking
request body became required
- breaking
the
request property format changed from no format touri - info
the response property
became required for the status
- breaking
- info
endpoint added
- info