Continue a run after its approvers decided
Continues the agent run a held tool call belongs to, once the approvers the organization’s tool policy names have decided every held call of that run in the approval queue. Call it after recording a decision there; this endpoint records none and takes no body. The caller must be able to read the approval: the caller whose run was held, or one of its approvers signed in to the same organization. Otherwise the answer is 404 with error code tool_approval_not_found. A held call that no agent run made returns 404 with error code not_an_agent_run. While any call of the run is undecided, including one without approvers that only the run’s caller can decide, the answer has status waiting and creates nothing. Once all are decided, one continuation run is created with the identity of the run’s caller and carries out each recorded decision; expired approvals are left out. Repeating the request, or two approvers finishing together, returns the same continuation run. When every approval has expired the answer is 409 with error code tool_approval_expired. The continuation is an ordinary run of the agent: it is not delivered to the connector conversation or web chat session that started the held run.
Authorizations
Send Authorization: Bearer , using an MKA1 API key for automation or an OAuth API access token for a signed-in application. Use a dynamic security callback to refresh OAuth access tokens. Browser session-only operations still require their declared cookie.
Headers
Optional external end-user identifier forwarded by the API gateway.
Path Parameters
ID of a held tool call, as the approval queue lists it.
Response
The run is still waiting for decisions, or was continued.
agent.run.approval_resume waiting while a held call of the run is undecided, with the count in pending; resumed once the run was continued, with the new run in continuation_run.
waiting, resumed The run that stopped for approval.
How many held calls of the run are undecided. Present when status is waiting.
x >= 1