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

# Revoke API Key

> Permanently revokes an API key.

Requires the `admin` scope.

Once revoked, the key is permanently unusable. This action cannot be undone.
If the key was already revoked, a `404` is returned.

<RequestExample>
  ```bash cURL theme={null}
  curl -X DELETE "https://api.chatgrid.ai/v1/me/api-keys/ee112233-4455-6677-8899-aabbccddeeff" \
    -H "Authorization: Bearer cgk_live_a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6"
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "object": "api_key_revoked",
    "data": {
      "id": "ee112233-4455-6677-8899-aabbccddeeff",
      "revoked": true
    }
  }
  ```

  ```json 404 theme={null}
  {
    "object": "error",
    "status": 404,
    "code": "not_found",
    "message": "API key not found or already revoked"
  }
  ```
</ResponseExample>
