Knowledge Bases
Knowledge Base Sources
List sources or add URL/file sources to a knowledge base
POST
Path Parameters
string
required
Knowledge base ID (UUID).
List Sources
Add a URL Source
string
required
Must be
url.string
required
URL to crawl and ingest.
boolean
If the URL already exists, re-ingest the existing source instead of returning a duplicate error.
Add a File Source
File ingestion uses a two-step upload, then an enqueue call:- Create a file source to get
presignedUrl,sourceId, andjobId. - Upload the file bytes to
presignedUrlwithPUT. - Call Enqueue File Source.
string
required
Must be
file.string
required
Original file name.
string
required
MIME type. Supported:
application/pdf, DOCX, TXT, HTML, CSV, and Markdown MIME types.number
required
File size in bytes. Maximum 50 MB.
string
Optional client-computed hash used for duplicate detection.
boolean
Skip duplicate blocking for the submitted file hash.
