# Refresh spending permission

Re-reads the delegate and remaining delegated amount on chain and marks the permission revoked if it was removed in the wallet. Console session or API key with payment:read.

`POST /v1/delegations/{id}/refresh`

Re-reads the delegate and remaining delegated amount on chain and marks the permission revoked if it was removed in the wallet. Console session or API key with payment:read.

Requires permission `payment:read`.

## Parameters

| Name | In | Required | Description |
| --- | --- | --- | --- |
| `id` | path | yes | On-chain permission (delegation) id (dlg_...). |

## 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
{
  "delegation": {
    "id": "id_01jd2x3k4m5n6p7q8r9s0t1v2w",
    "network": "eip155:84532",
    "network_name": "string",
    "kind": "string",
    "status": "active",
    "owner_address": "string",
    "token_account": "string",
    "delegate": "string",
    "asset": "USDC",
    "cap_base_units": "50000",
    "used_base_units": "50000",
    "remaining_base_units": "50000",
    "onchain": {
      "delegate": "string",
      "delegate_ok": true,
      "remaining": "string",
      "balance": "string",
      "source": "string"
    },
    "tx_ref": "string"
  },
  "unsigned_tx": "string",
  "tx_encoding": "string",
  "tx_format": "string",
  "recent_blockhash": "string",
  "last_valid_block_height": 1
}
```
