Skip to content

Documents

GET /v1/documents
Parameter In Type Required Notes
end_user_id query string | null no max length 255
status query "queued" | "processing" | "ready" | "failed" | null no
limit query integer no ≥ 1; ≤ 100; default 25
cursor query string | null no

DocumentList

401 Unauthorized · 402 Payment Required · 403 Forbidden · 404 Not Found · 413 Request Entity Too Large · 422 Unprocessable Entity · 429 Too Many Requests

Every error has the same body: see Limits and errors.

POST /v1/documents

Multipart with file, or JSON {url, end_user_id?, metadata?}. Processing is asynchronous: poll the document or wait for the document.ready webhook.

Field Type Required Notes
file string | null no
end_user_id string | null no max length 255
metadata string | null no JSON object

Document

401 Unauthorized · 402 Payment Required · 403 Forbidden · 404 Not Found · 413 Request Entity Too Large · 422 Unprocessable Entity · 429 Too Many Requests

Every error has the same body: see Limits and errors.

GET /v1/documents/{document_id}
Parameter In Type Required Notes
document_id path string (uuid) yes

Document

401 Unauthorized · 402 Payment Required · 403 Forbidden · 404 Not Found · 413 Request Entity Too Large · 422 Unprocessable Entity · 429 Too Many Requests

Every error has the same body: see Limits and errors.

Delete a document, its chunks and the raw file

Section titled “Delete a document, its chunks and the raw file”
DELETE /v1/documents/{document_id}
Parameter In Type Required Notes
document_id path string (uuid) yes

no body

401 Unauthorized · 402 Payment Required · 403 Forbidden · 404 Not Found · 413 Request Entity Too Large · 422 Unprocessable Entity · 429 Too Many Requests

Every error has the same body: see Limits and errors.