Answer an approval or question, or cancel an Oliver run.
POST/api/v1/oliver-runs/{oliver_run_id}/respondoliver:run
approve or deny an approval, answer a question (answer, selections or step_answers as the question asks), or cancel the run and its sub-agent runs. tool_call_key is the pending.tool_call_key. images attaches pictures to the answer (not with cancel), through the Portal's inject-image, and needs Inject Oliver Images. A question the run is not waiting on is 409. Requires Resume Oliver Runs or Cancel Oliver Runs for the selected action; resuming also needs Execute Oliver Tools.
| Scope | oliver:run |
| Asynchronous | No |
| MCP tool | respond_oliver_run |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
oliver_run_id | path | string | Required | |
Docwize-Version | header | string (date) | Optional | |
Idempotency-Key | header | string | Optional | max 255 |
Request body
| Content type | Type |
|---|---|
application/json | OliverRunRespondInput |
Responses
| Status | Description | Body |
|---|---|---|
200 | Success. | application/json OliverRunResult 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
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. |
OliverRunRespondInput
| Field | Type | Required | Description |
|---|---|---|---|
action | string | Required | approve or deny for an approval; answer for a question; cancel to stop the run. |
answer | string or null | Optional | The answer to a question; required unless steps or selections answer it. |
comment | string or null | Optional | A note with an approval or refusal. |
images | array of OliverMessageImageInput | Optional | Pictures to attach to your answer, as the chat's attach button does for a question the run waits on (a screenshot it asked for): each base64 with an optional caption, within get_company_settings_oliver_image_limits. One batch per waiting turn. Not with cancel. |
selections | array of string | Optional | The choices of a question that allows several. |
step_answers | object | Optional | The answer to each step of a question with steps, by step_key. |
tool_call_key | string or null | Optional | pending.tool_call_key of the approval or question; required for approve, deny and answer. |
OliverRunResult
| Field | Type | Required | Description |
|---|---|---|---|
accepted | boolean | Required | True when the answer resumed the run, or the cancel stopped it. |
action | string | Required | |
already_finished | boolean | Required | True when a cancel found the run already finished. |
oliver_run_id | string | Required | |
status | string | Required |