Scrape a list of URLs into a knowledge base
Adds one or more URLs to a knowledge base by scraping each page’s content, chunking it, and indexing for retrieval. Typical flow:
- Discover candidate URLs (
POST /knowledgebase/get-sitemap-urlsor paste your own list). - Call this endpoint with the curated list — scraping runs async.
- Poll
GET /knowledgebase/{id}/scraped-urlsfor the per-URL status.
Returns 400 if your account’s KB billing precheck fails (quota or plan limits). Returns 404 if the KB doesn’t belong to your organization.
Authentication
AuthorizationBearer
API key from the console ApiKey collection, sent as Bearer token. Also accepts session cookies for browser-based auth.
Path parameters
id
24-character hex id of the target knowledge base.
Request
This endpoint expects an object.
urls
Response
Scrape job(s) queued. Poll /scraped-urls for per-URL status.
status
data
Async job acknowledgement. Inspect /scraped-urls for per-URL progress.
Errors
400
Bad Request Error
401
Unauthorized Error
404
Not Found Error
500
Internal Server Error