API reference
POSTRequires Bearer token
Analyze document
/api/ai/documents/{document_id}/analyze
Submit `/api/ai/documents/{document_id}/analyze`. Authenticated routes need `Authorization: Bearer {token}` from `POST /api/v1/login`.
Path parameters
| Field | Type | Description |
|---|---|---|
document_id Required | string | Path parameter `document_id`. |
Query parameters
| Field | Type | Description |
|---|---|---|
async | boolean | If true, returns `202` and a job id. e.g. false |
Request body
This endpoint does not accept a request body.
Responses
| Status | Meaning |
|---|---|
| 500 | See the example response. |