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

# Revokes (deletes) a tenant API key. The key stops authenticating immediately.

> Platform-admin only.

Platform-admin only.

### Path parameters

<ParamField path="id" type="string" required>
  Tenant ID
</ParamField>

<ParamField path="key_id" type="string" required>
  Key ID
</ParamField>

### Response

No response body. Key revoked.

### Status codes

| Code  | Meaning     |
| ----- | ----------- |
| `200` | Key revoked |
| `404` | Unknown key |

<RequestExample>
  ```bash cURL theme={null}
  curl --request DELETE \
    --url 'https://edi.stateset.com/v1/tenants/{id}/api-keys/{key_id}' \
    --header 'Authorization: Bearer YOUR_API_KEY'
  ```
</RequestExample>
