PROCESSING status, and the document transitions to COMPLETED or FAILED as the embedding pipeline runs.
All requests require a valid bearer token in the Authorization header.
List documents
string
Filter results to documents belonging to a specific knowledge base UUID.
number
default:"0"
Zero-based page index for pagination.
number
default:"20"
Number of documents per page.
object[]
Array of
KnowledgeContent objects.Upload a document
status: "PROCESSING".
Supported file types: PDF (.pdf), plain text (.txt).
file
required
The file to upload. Must be sent as
multipart/form-data with the field name file.string
Optional UUID of the knowledge base to assign this document to.
string
Optional human-readable description of the document’s content.
string
UUID of the newly created document record. Use this to check status or delete the document.
string
Always
"PROCESSING" on successful upload.string
Human-readable confirmation message.
Semantic search
string
required
The natural language query to search for. The server converts this to an embedding and performs a nearest-neighbor search.
object[]
Array of
Document objects from the vector store, sorted by relevance score.Delete a document
string
required
UUID of the document to delete, as returned by the list or upload endpoints.
204 No Content with an empty body on success.
Trigger URL ingestion for an agent
jobId immediately.
string
required
The unique identifier of the agent whose configured URLs should be ingested.
string
The identifier of the background ingestion job. You can track progress by monitoring document statuses via
GET /api/knowledge.Document status transitions (
PROCESSING → COMPLETED or FAILED) can be monitored by polling GET /api/knowledge and checking the status field of the document.