Revoke a class-B agent-client integration (operator)
ic_admin_agent_client_revokeRevoke an integration and flag its AUTONOMOUS actions for recipient re-confirmation (DESIGN §9 — interactive actions are NOT flagged, each had per-call approval). Revokes every linked bearer token so the integration is dead immediately, snapshots prior state for one-step revert (DESIGN §18), and returns how many autonomous actions were flagged + tokens revoked. Operator-only (admin:agent_clients + live operator re-check). Idempotent. Args: { client_id: string (cli_), reason: string }. Returns: { ok, actions_flagged, tokens_revoked }. Required scope: admin:agent_clients.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | Yes | Why the integration is being revoked — recorded on the client record + rollback snapshot. | |
| client_id | Yes | The cli_<base32> id from ic_admin_agent_client_list. |