Knowledge Bases
Source Actions
Enqueue, re-ingest, or delete knowledge base sources
POST
Path Parameters
string
required
Knowledge source ID (UUID).
Enqueue File Ingestion
After creating a file source and uploading the file to its presigned URL, enqueue ingestion:POST /v1/knowledge-sources/{sourceId}/enqueue
string
required
The
jobId returned when you created the file source. It must belong to this source — a mismatched or unknown jobId returns 400 invalid_request.boolean
Rebuild the source even if it was previously ingested.
Re-ingest a Source
Re-ingesting creates a new ingestion job and rebuilds the source’s vectors.POST /v1/knowledge-sources/{sourceId}/reingest
Download a Source File
GET /v1/knowledge-sources/{sourceId}/download
Returns a short-lived presigned URL for the source’s original uploaded file. GET that
URL to retrieve the bytes — it carries the original filename, so a browser saves it
under the name it was uploaded with rather than the internal storage key.
Only file sources can be downloaded. A URL source returns 400 invalid_request; its
address is already available in the url field from List Sources.
The URL expires after expiresIn seconds — request a new one rather than storing it.
Delete a Source
DELETE /v1/knowledge-sources/{sourceId}
Deletes the source row, related storage objects, and enqueues worker-side vector deletion.
