Starts an empty chat thread of yours, with no run and no cost. Without oliver_agent_id it uses the organisation's default agent. contexts scopes the chat to documents, folders and dataviews ("ask Oliver about this document"): each must exist and be readable by you, or the call is refused (422 reference_not_found or reference_forbidden naming the ID you sent), and naming one needs the matching read scope. A progressive agent starts a progressive thread instead, together with its first message and run (message required; the Portal's progressive admission checks that it admits the caller to progressive agents, the tenant's controls and the agent's profile; it needs Start Oliver Runs and Execute Oliver Tools, and images need Inject Oliver Images). The thread starts in ask mode, where any write the agent proposes waits for your approval, unless permission_mode is auto (Oliver itself may not choose auto, 403). Send the first message with POST /oliver-threads/{oliver_thread_id}/messages. Needs Create Oliver Conversations.
| |
|---|
| Scope | oliver:run |
| Asynchronous | No |
| MCP tool | create_oliver_thread |
| Portal permissions | create_oliver_conversations |
Parameters
| Name | In | Type | Required | Description |
|---|
Docwize-Version | header | string (date) | Optional | |
Idempotency-Key | header | string | Optional | max 255 |
Request body
Responses
Errors
The problem codes this operation can answer with. Each code links to its page.
Schemas
| Field | Type | Required | Description |
|---|
caption | string or null | Optional | What the image shows, for the agent; default "User attached image". |
data | string | Required | The image bytes, base64; a data URL is accepted. PNG, JPEG, GIF or WebP. |
OliverThread
| Field | Type | Required | Description |
|---|
agent_name | string or null | Required | |
contexts | array of OliverThreadContext | Required | What the chat is scoped to: documents, folders and dataviews the agent is told to work with. |
created_at | string (date-time) or null | Required | |
latest_run | OliverThreadRunRef or null | Required | The thread's most recent run; null when it has none. |
my_rating | OliverThreadFeedback or null | Required | Your own rating of the thread, as the Portal's rate dialog shows it; null until you rate it. Rate with rate_oliver_thread. |
oliver_agent_id | string or null | Required | The agent the thread talks to. |
oliver_thread_id | string | Required | |
permission_mode | string | Required | ask (any write waits for approval) or auto. |
title | string or null | Required | The chat's heading, taken from its first message; null until then. |
updated_at | string (date-time) or null | Required | When the thread last had a message. |
OliverThreadContext
| Field | Type | Required | Description |
|---|
dataview_id | string or null | Required | The dataview, for type dataview. |
document_id | string or null | Required | The document, for type document. |
folder_id | string or null | Required | The folder, for type folder. |
label | string or null | Required | What the Portal shows for the context: a document's number, a folder's or dataview's name. Read-only: ignored when sent. |
type | string | Required | document, folder or dataview. A context this API does not set (a search, a clustering run, a redaction) reads as unknown. |
type_code | string or null | Required | The stored type of a context whose type is unknown. Read-only. |
OliverThreadContextInput
| Field | Type | Required | Description |
|---|
dataview_id | string or null | Optional | The dataview, for type dataview. |
document_id | string or null | Optional | The document, for type document. |
folder_id | string or null | Optional | The folder, for type folder. |
label | string or null | Optional | What the Portal shows for the context: a document's number, a folder's or dataview's name. Read-only: ignored when sent. |
type | string | Required | document, folder or dataview. A context this API does not set (a search, a clustering run, a redaction) reads as unknown. |
type_code | string or null | Optional | The stored type of a context whose type is unknown. Read-only. |
| Field | Type | Required | Description |
|---|
contexts | array of OliverThreadContextInput | Optional | What to scope the chat to: a document, a folder or a dataview each, as {type, document_id | folder_id | dataview_id}. You must be able to read each, and your token needs documents:read, folders:read or dataviews:read to name one. |
images | array of OliverMessageImageInput | Optional | A progressive agent only: pictures attached to the first message, as for create_oliver_thread_message. |
message | string or null | Optional | A progressive agent only: the first message. A progressive thread is created together with its first message and run (the Portal's progressive admission); a standard thread starts empty and takes its first message with create_oliver_thread_message. |
oliver_agent_id | string or null | Optional | The agent to chat with; omit for the organisation's default agent. |
permission_mode | string or null | Optional | ask (the default: any write the agent proposes waits for your approval) or auto (writes run without asking, each audited on its tool call), as the Portal's mode toggle. Change it later with update_oliver_thread. |
OliverThreadFeedback
| Field | Type | Required | Description |
|---|
created_at | string (date-time) or null | Required | |
message | string or null | Required | What went wrong or right; required at 2 stars or fewer. |
oliver_thread_id | string | Required | |
rating | integer | Required | 1 to 5 stars. ≥ -2147483648; ≤ 2147483647 |
release | string or null | Required | The backend release the rating is tied to; null when unknown. |
OliverThreadRunRef
| Field | Type | Required | Description |
|---|
oliver_run_id | string | Required | |
status | string | Required | The run's status: planning, executing, running, waiting_for_user, completed, failed or cancelled (open). |