Create sources
Creates one or more sources. Accepts an array.
- URL sources are crawled and ingested automatically.
- File sources return a
presigned_urlandcontent_typein the response — upload the file bytes to that URL, then mark the source ready with Update a source (file_upload_status: COMPLETE).
Attach sources to a knowledge base with Add sources to a knowledge base. Requires a token with write access.
Authorizations
Personal access token. See Authentication.
Body
File name (e.g. faq.md) for FILE, or a valid URL for URL.
Whether the source is an uploaded file or a crawled URL.
FILE, URL How the source's content is split into chunks before embedding.
Optional client-supplied ID. Generated if omitted.
Domain, for URL sources.
Size in bytes, for file sources.
Response
The created sources. File sources include an upload URL.
Unique source ID.
Whether the source is an uploaded file or a crawled URL.
FILE, URL File name (FILE) or URL (URL).
Domain, for URL sources.
Upload/ingestion status of the source's content.
PENDING, IN_PROGRESS, COMPLETE, FAILED How the source's content is split into chunks before embedding.
Size in bytes, for file sources.
For file sources: upload the file bytes here, then mark the source COMPLETE.
The MIME type to use when uploading to presigned_url.

