# Preview agent revocation

Lists what revoking the agent would do: credentials, open approvals, pending payments, cards, plans, spending wallet balances and payments already in flight. Console session or API key with agent:revoke; changes nothing.

`GET /v1/agents/{id}/revoke-preview`

Lists what revoking the agent would do: credentials, open approvals, pending payments, cards, plans, spending wallet balances and payments already in flight. Console session or API key with agent:revoke; changes nothing.

Requires permission `agent:revoke`.

## Parameters

| Name | In | Required | Description |
| --- | --- | --- | --- |
| `id` | path | yes | Agent id (agt_...). |

## Responses

- **200**: Success.
- **401**: No valid session, API key or agent credential (UNAUTHENTICATED, AGENT_CREDENTIAL_INVALID).
- **403**: Authenticated but not allowed: missing permission, passkey step-up required, or denied by policy.
- **404**: The resource does not exist or belongs to another organization.

Example 200 response:

```json
{
  "agent": {
    "id": "agt_01m7dmxx5b0jc1gcgw6sgeaqf3",
    "name": "Research Agent",
    "status": "active"
  },
  "effects": {
    "credentials_active": 1,
    "open_approvals": 0,
    "reserved_intents": 0,
    "reserved_base_units": "0",
    "cards_active": 0,
    "plans_active": 0,
    "spending_wallets_with_balance": 2,
    "spending_wallet_balance_base_units": "100000",
    "in_flight": [],
    "lines": [
      "Stops new payments on all rails",
      "Sweeps 2 spending wallets back to you"
    ]
  }
}
```
