# revoke_vault_key

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

Revoke a vault key. Deployments pulling with it get 401 from then on. Needs write access, and your person must be a workspace owner or admin.

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

## Inputs

- `key` (string, required): The vault key's ID from list_vault_keys, such as Vk2pR7mXq4Ln.

## Request

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

## 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/vault-keys:revoke \
  -H "Authorization: Bearer $CLANKER_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "key": "Vk2pR7mXq4Ln"
  }'
```
