Mandates and approvals
Approve
/api/w/:wid/approvals/:apid/approveDecide yes. The same rules as chat and phone: who may decide, named approvers, separation of duties, holds, and a fresh check against the mandate. The receipt that follows carries hum: true.
So a person is not asked twice, remember approves for longer than this call. Each pending approval lists what it can be remembered for in rememberOptions:
{ "scope": "agent_tool", "hours": 1 }covers this agent and this kind of call, from 1 to 8 hours. A kind of call is one MCP tool, or one command and its subcommand, such asnpm publishorgit push, never “any shell command”. It is not offered for a compound command,sudoor an interpreter running inline code.{ "scope": "exact_input" }covers this exact request again in the same agent session, for 12 hours.
Payments, data releases and crypto transfers are always approved one at a time. A grant answers only a call the rules would have asked a person about; it never turns a refusal into an allow. Each call it answers carries the original approval’s id in its reasons and in an agent_approval_reused ledger record.
{ "note": "Releasing the 2.4 line today.", "remember": { "scope": "agent_tool", "hours": 4 } }#Authentication
Session cookie
A signed-in person: the console's session cookie. Every state-changing request also carries the header x-immiscible-csrf: 1, and the member's role decides what it may do. Bearer tokens are ignored on these routes, so no machine credential can reach them.
#Path parameters
widstringrequired
Workspace id
apidstringrequired
Approval id