Skip to main content

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.

Scopeoliver:run
AsynchronousNo
MCP toolrespond_oliver_run

Parameters​

NameInTypeRequiredDescription
oliver_run_idpathstringRequired
Docwize-Versionheaderstring (date)Optional
Idempotency-KeyheaderstringOptionalmax 255

Request body​

Content typeType
application/jsonOliverRunRespondInput

Responses​

StatusDescriptionBody
200Success.application/json OliverRunResult or object
400invalid_version, malformed_jsonapplication/problem+json Problem
401token_expired, unauthenticatedapplication/problem+json Problem
403forbidden, insufficient_scope, token_owner_inactiveapplication/problem+json Problem
404not_foundapplication/problem+json Problem
405method_not_allowedapplication/problem+json Problem
406not_acceptableapplication/problem+json Problem
409conflict, idempotency_in_progressapplication/problem+json Problem
413payload_too_largeapplication/problem+json Problem
415unsupported_media_typeapplication/problem+json Problem
421wrong_regionapplication/problem+json Problem
422idempotency_key_reused, validation_failedapplication/problem+json Problem
500internal_errorapplication/problem+json Problem
503tenant_unavailable, unavailableapplication/problem+json Problem
504timeoutapplication/problem+json Problem

Errors​

The problem codes this operation can answer with. Each code links to its page.

Schemas​

OliverMessageImageInput​

FieldTypeRequiredDescription
captionstring or nullOptionalWhat the image shows, for the agent; default "User attached image".
datastringRequiredThe image bytes, base64; a data URL is accepted. PNG, JPEG, GIF or WebP.

OliverRunRespondInput​

FieldTypeRequiredDescription
actionstringRequiredapprove or deny for an approval; answer for a question; cancel to stop the run.
answerstring or nullOptionalThe answer to a question; required unless steps or selections answer it.
commentstring or nullOptionalA note with an approval or refusal.
imagesarray of OliverMessageImageInputOptionalPictures 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.
selectionsarray of stringOptionalThe choices of a question that allows several.
step_answersobjectOptionalThe answer to each step of a question with steps, by step_key.
tool_call_keystring or nullOptionalpending.tool_call_key of the approval or question; required for approve, deny and answer.

OliverRunResult​

FieldTypeRequiredDescription
acceptedbooleanRequiredTrue when the answer resumed the run, or the cancel stopped it.
actionstringRequired
already_finishedbooleanRequiredTrue when a cancel found the run already finished.
oliver_run_idstringRequired
statusstringRequired