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

# Delete API Token

> Delete an API token

## Authorization

<ParamField header="Authorization" type="string" required>
  Bearer token for authentication. Format: `Bearer qwoty_your_token`
</ParamField>

## Path Parameters

<ParamField path="id" type="string" required>
  The unique identifier of the API token to delete
</ParamField>

## Response

<ResponseField name="success" type="boolean">
  Indicates if the operation was successful
</ResponseField>

<ResponseField name="message" type="string">
  Confirmation message
</ResponseField>

<RequestExample>
  ```bash cURL theme={null}
  curl --request DELETE \
    --url https://qwoty.app/api/tokens/tok_123abc
  ```

  ```javascript JavaScript theme={null}
  const response = await fetch('https://qwoty.app/api/tokens/tok_123abc', {
    method: 'DELETE',
  })

  const data = await response.json()
  ```

  ```python Python theme={null}
  import requests

  response = requests.delete('https://qwoty.app/api/tokens/tok_123abc')
  data = response.json()
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "success": true,
    "message": "API token deleted successfully"
  }
  ```

  ```json 400 theme={null}
  {
    "error": "Token ID is required"
  }
  ```

  ```json 404 theme={null}
  {
    "error": "Token not found"
  }
  ```
</ResponseExample>

<Warning>
  Once deleted, an API token cannot be recovered. Any applications using this
  token will immediately lose access.
</Warning>
