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

# List API Tokens

> Retrieve all API tokens for your workspace

## Authorization

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

## Query Parameters

This endpoint does not require any parameters.

## Response

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

<ResponseField name="data" type="array">
  Array of API token objects

  <Expandable title="Token Object">
    <ResponseField name="id" type="string">
      Unique identifier for the token
    </ResponseField>

    <ResponseField name="name" type="string">
      Name of the token
    </ResponseField>

    <ResponseField name="expires_at" type="string">
      Expiration date of the token
    </ResponseField>

    <ResponseField name="created_at" type="string">
      Creation timestamp
    </ResponseField>

    <ResponseField name="last_used_at" type="string">
      Last usage timestamp
    </ResponseField>
  </Expandable>
</ResponseField>

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

  ```javascript JavaScript theme={null}
  const response = await fetch('https://qwoty.app/api/tokens')
  const data = await response.json()
  ```

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

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

<ResponseExample>
  ```json 200 theme={null}
  {
    "success": true,
    "data": [
      {
        "id": "tok_123abc",
        "name": "Production API Token",
        "expires_at": "2025-12-31T23:59:59Z",
        "created_at": "2024-01-15T10:30:00Z",
        "last_used_at": "2024-01-20T14:22:00Z"
      },
      {
        "id": "tok_456def",
        "name": "Development Token",
        "expires_at": null,
        "created_at": "2024-01-10T08:15:00Z",
        "last_used_at": "2024-01-19T16:45:00Z"
      }
    ]
  }
  ```

  ```json 400 theme={null}
  {
    "error": "Failed to retrieve tokens"
  }
  ```
</ResponseExample>
