Send a message to an Oliver thread (starts a run).
POST/api/v1/oliver-threads/{oliver_thread_id}/messagesoliver:run
Sends your message to the thread's agent and starts a run that answers it. Answers arrive as the run's answer (GET the run, or wait for it). A thread with an unfinished run is 409 naming that run. images attaches pictures to the message and needs Inject Oliver Images. On a progressive thread the message is a new run admitted by the Portal's progressive admission (neither oliver_agent_id nor oliver_model_id applies). The answer is 201 with the run's Location. Needs Start Oliver Runs and Execute Oliver Tools.
| Scope | oliver:run |
| Asynchronous | No |
| MCP tool | create_oliver_thread_message |
| Portal permissions | start_oliver_runs, execute_oliver_tools |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
oliver_thread_id | path | string | Required | |
Docwize-Version | header | string (date) | Optional | |
Idempotency-Key | header | string | Optional | max 255 |
Request body
| Content type | Type |
|---|---|
application/json | OliverMessageCreateInput |
Responses
| Status | Description | Body |
|---|---|---|
201 | Success. | application/json OliverMessage or object |
400 | invalid_version, malformed_json | application/problem+json Problem |
401 | token_expired, unauthenticated | application/problem+json Problem |
403 | forbidden, insufficient_scope, token_owner_inactive | application/problem+json Problem |
404 | not_found | application/problem+json Problem |
405 | method_not_allowed | application/problem+json Problem |
406 | not_acceptable | application/problem+json Problem |
409 | conflict, idempotency_in_progress | application/problem+json Problem |
413 | payload_too_large | application/problem+json Problem |
415 | unsupported_media_type | application/problem+json Problem |
421 | wrong_region | application/problem+json Problem |
422 | idempotency_key_reused, validation_failed | application/problem+json Problem |
500 | internal_error | application/problem+json Problem |
503 | tenant_unavailable, unavailable | application/problem+json Problem |
504 | timeout | application/problem+json Problem |
Errors
The problem codes this operation can answer with. Each code links to its page.
Schemas
OliverMessage
| Field | Type | Required | Description |
|---|---|---|---|
agent_name | string or null | Required | |
content | string | Required | |
oliver_agent_id | string or null | Required | |
oliver_message_id | string | Required | |
oliver_run_id | string | Required | |
oliver_thread_id | string | Required | |
permission_mode | string | Required | ask or auto. |
status | string | Required | The run's status when it was started. |
OliverMessageCreateInput
| Field | Type | Required | Description |
|---|---|---|---|
images | array of OliverMessageImageInput | Optional | Images to attach to the message, as the chat's attach button does: each base64 (a data URL is accepted), with an optional caption. The Oliver image limits apply (count, bytes each and together, pixels): one over them is 413 payload_too_large or 422 on /images. |
message | string | Required | What the user says to the agent. |
oliver_agent_id | string or null | Optional | The agent to answer; omit for the thread's agent (the default agent when it has none). |
oliver_model_id | string or null | Optional | The model that answers this message, as the Portal's model picker chooses it for a turn: fast or smart, or an id from list_oliver_models. Omit for the agent's own model. |
OliverMessageImageInput
| 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. |