Skip to content

Documents API

The Documents API provides endpoints for uploading files, managing document lifecycle, controlling the ingestion queue, and inspecting the resulting knowledge graph entries.

Document Management

MethodEndpointDescription
POST/api/v1/documents/uploadUpload one or more files for ingestion
GET/api/v1/documents/List all documents
GET/api/v1/documents/ingestion-statusIngestion status across all documents
GET/api/v1/documents/graphKnowledge graph entries for ingested documents
GET/api/v1/documents/{doc_id}/previewPreview a document (PDF, text, or structured)
GET/api/v1/documents/{doc_id}/downloadDownload the original file
PATCH/api/v1/documents/{doc_id}/statusUpdate document status
POST/api/v1/documents/{doc_id}/approveApprove a document for ingestion
POST/api/v1/documents/{doc_id}/ingestTrigger ingestion for a specific document
DELETE/api/v1/documents/{doc_id}Delete a document

Document Linking

MethodEndpointDescription
POST/api/v1/documents/{doc_id}/linkCreate a relationship link from this document
DELETE/api/v1/documents/{doc_id}/link/{rel_id}Remove a relationship link

Ingestion Queue

MethodEndpointDescription
POST/api/v1/documents/queue/enqueueAdd documents to the ingestion queue
POST/api/v1/documents/queue/pausePause the ingestion queue
POST/api/v1/documents/queue/resumeResume the ingestion queue
GET/api/v1/documents/queue/statusCurrent queue status and progress
GET/api/v1/documents/queue/streamSSE stream for real-time queue updates
DELETE/api/v1/documents/queue/{doc_id}Remove a document from the queue

Next Steps