> ## 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.

# Revoke an API key

> API key revoked

### Path parameters

<ParamField path="id" type="string (uuid)" required>
  API key identifier
</ParamField>

### Response

`SuccessResponse`

<ResponseField name="success" type="boolean" />

### Status codes

| Code  | Meaning           |
| ----- | ----------------- |
| `200` | API key revoked   |
| `404` | API key not found |

<RequestExample>
  ```bash cURL theme={null}
  curl --request DELETE \
    --url 'https://api.sandbox.stateset.app/api/v1/api-keys/{id}' \
    --header "Authorization: Bearer $STATESET_SANDBOX_API_KEY"
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "success": true
  }
  ```
</ResponseExample>
