API reference
POSTRequires Bearer token
Start a document conversation
/api/ai/conversations
Creates a chat bound to one or more ingested documents. Then POST messages on /api/ai/conversations/{conversation_id}/messages.
Path parameters
This endpoint has no path parameters.
Query parameters
This endpoint has no query parameters.
Request body
| Field | Type | Description |
|---|---|---|
type Required | string | Must be document.e.g. "document" |
document_ids Required | array | At least one ingested document id. e.g. ["3fa85f64-5717-4562-b3fc-2c963f66afa6"] |
Responses
| Status | Meaning |
|---|---|
| 201 | See the example response. |
| 401 | Missing or invalid Bearer token. |