# revoke_api_key

`tools/call` · `POST /clanker/v1/api-keys:revoke`

Revoke one of your person's API keys. Anything still using it gets 401 from then on. Needs write access.

- Area: Keys
- Needs the write grant. Destructive. Idempotent.

## Inputs

- `key` (string, required): The key's ID from its list, such as Ak3mT8qWz1Lp.

## Request

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "revoke_api_key",
    "arguments": {
      "key": "Ak3mT8qWz1Lp"
    }
  }
}
```

## HTTP request

The same call over the clanker HTTP API, with a clanker OAuth access token:

```bash
curl -X POST https://api.clankership.com/clanker/v1/api-keys:revoke \
  -H "Authorization: Bearer $CLANKER_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "key": "Ak3mT8qWz1Lp"
  }'
```
