דילוג לתוכן הראשי

Add a source

POST 

/knowledge-bases/:kb_id/sources

Add a source — a URL, or an uploaded file.

URL: application/json with {"url": "https://…"}. Set crawl_inner: true to follow links within the same site. URLs are validated against private address ranges before the worker fetches them.

File: multipart/form-data with a file part. PDFs, Office documents, plain text and images are supported.

Returns 202 immediately with the source in processing. Poll GET /v1/knowledge-bases/{kb_id}/sources for the outcome — a large PDF takes minutes, not seconds.

Request

Responses

Accepted. Ingestion runs in the background.