> ## Documentation Index
> Fetch the complete documentation index at: https://okl-ink.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Revoke API Token

> Immediately revoke an API token.

# Revoke API Token

Revokes an API token so that any future requests presenting it will receive a `401 Unauthorized` response.

### Headers

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

### Query Parameters

<ParamField query="id" type="string" required>
  The unique ID of the token to revoke.
</ParamField>

### Response

<ResponseField name="success" type="boolean">
  Returns `true` when revocation succeeds.
</ResponseField>

<RequestExample>
  ```bash cURL theme={null}
  curl -X DELETE "https://okl.ink/api/v1/tokens?id=cmsh98127391823" \
    -H "Authorization: Bearer YOUR_API_TOKEN"
  ```
</RequestExample>

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