- Create sources — upload a file or point at a URL to crawl.
- List, retrieve, update, and delete sources.
- Download the original file behind a source.
Sources
Overview
Create and manage the files and URLs that feed your knowledge bases.
A source is a single file or URL whose content gets ingested, chunked, and embedded. Sources exist independently of knowledge bases — one source can be attached to several of them.
Use these endpoints to:
Previous
Create sourcesCreates one or more sources. Accepts an **array**.
- **URL sources** are crawled and ingested automatically.
- **File sources** return a `presigned_url` and `content_type` in the response — upload the file bytes to that URL, then mark the source ready with [Update a source](#tag/sources/put/knowledge-base/sources/{source_id}) (`file_upload_status: COMPLETE`).
Attach sources to a knowledge base with [Add sources to a knowledge base](#tag/knowledge-base-sources/post/knowledge-base/datasets/{dataset_id}/sources). Requires a token with write access.
Next

