Start a website crawl
POST/api/v1/chatbots/:chatbotId/crawls
Crawls one or more website URLs into the chatbot's knowledge base (embedded as searchable vectors), mirroring the dashboard website-crawl flow. Provide a single url or a urls array (max 100; the App batches into ≤10-per-request worker calls). Asynchronous — returns 202 with a crawlId + jobId; poll GET /crawls to track progress. Refuses a second in-flight crawl for the same domain + version (409). Requires admin-level chatbot access (owner / team admin / per-chatbot admin) — plain team editors cannot crawl via this API. Required scope: documents:write.
Request
Responses
- 202
- 400
- 401
- 403
- 404
- 409
- 429
Crawl accepted and dispatched.
Bad Request — invalid input
Unauthorized — missing or invalid API key
Forbidden — key lacks required scope
Not Found
A crawl for this domain + version is already in progress.
Too Many Requests — rate limit exceeded