> ## Documentation Index
> Fetch the complete documentation index at: https://docs.yativo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Revoke API Key

> Permanently revoke an API key. This action is immediate and irreversible.

<ParamField header="Authorization" type="string" required>
  Bearer token: `Bearer YOUR_ACCESS_TOKEN`
</ParamField>

<ParamField path="keyId" type="string" required>
  The key ID to revoke (e.g. `key_01HX9KZMB3F7VNQP8R2WDGT4E5`).
</ParamField>

<Warning>
  Revoking a key is **immediate and irreversible**. Any services using this key will lose API access instantly. Ensure you have updated all dependent services before revoking.
</Warning>

<RequestExample>
  ```bash cURL theme={null}
  curl -X DELETE 'https://crypto-api.yativo.com/api/v1/apikey/key_69c799d9f1fba3928d8a12ac' \
    -H 'Authorization: Bearer YOUR_ACCESS_TOKEN'
  ```
</RequestExample>

<ResponseExample>
  ```json Success theme={null}
  {
    "success": true,
    "message": "API key revoked successfully",
    "data": {
      "id": "key_69c799d9f1fba3928d8a12ac",
      "is_revoked": true,
      "revoked_at": "2026-03-28T11:00:00.000Z"
    }
  }
  ```
</ResponseExample>
