Documents
List documents
Section titled “List documents”GET /v1/documentsParameters
Section titled “Parameters”| 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 |
Response 200
Section titled “Response 200”Errors
Section titled “Errors”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.
Upload a file or add a URL
Section titled “Upload a file or add a URL”POST /v1/documentsMultipart with file, or JSON {url, end_user_id?, metadata?}. Processing is
asynchronous: poll the document or wait for the document.ready webhook.
Request body (multipart/form-data)
Section titled “Request body (multipart/form-data)”| Field | Type | Required | Notes |
|---|---|---|---|
file |
string | null | no | |
end_user_id |
string | null | no | max length 255 |
metadata |
string | null | no | JSON object |
Response 202
Section titled “Response 202”Errors
Section titled “Errors”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 a document and its processing status
Section titled “Get a document and its processing status”GET /v1/documents/{document_id}Parameters
Section titled “Parameters”| Parameter | In | Type | Required | Notes |
|---|---|---|---|---|
document_id |
path | string (uuid) | yes |
Response 200
Section titled “Response 200”Errors
Section titled “Errors”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}Parameters
Section titled “Parameters”| Parameter | In | Type | Required | Notes |
|---|---|---|---|---|
document_id |
path | string (uuid) | yes |
Response 204
Section titled “Response 204”no body
Errors
Section titled “Errors”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.