Skip to navigation

Approve a pending agent action

Approve and execute a pending agent action. The server re-runs the policy check (a flip to deny stops the write), verifies the TOTP code when the verb requires step-up, verifies the fresh auth token immediately before the write, then executes the tool. The pending action is deleted on success. An optional params object edits the staged diff; edited params are re-validated and re-checked.

Path parameters

actionIdstringRequired

Request

This endpoint expects an object.
totpCodestringOptional

TOTP code from the authenticator app or a backup code; required when the action’s verb requires step-up.

paramsobjectOptional

Edited tool params (Edit). Keys must be valid for the staged tool; the edit is re-validated against the meta-policy and re-checked before apply.

Response

Action approved and applied (or denied by a flipped policy, with receipt).

typestringOptional
messagestringOptional
resultobjectOptional
receiptobjectOptional
revertActionIdstringOptional
revertMessagestringOptional

Errors

401
Unauthorized Error
404
Not Found Error