API reference
POSTRequires Bearer token
Upload a document for AI
/api/ai/documents
Multipart PDF or JSON with base64 content.
Path parameters
This endpoint has no path parameters.
Query parameters
This endpoint has no query parameters.
Request body
Send as multipart/form-data.
| Field | Type | Description |
|---|---|---|
file | string | PDF file (multipart). |
filename | string | File name when sending JSON. e.g. "contract.pdf" |
content_base64 | string | PDF content, base64-encoded. |
Responses
| Status | Meaning |
|---|---|
| 500 | See the example response. |