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

# List API Tokens

> Retrieve all active, non-revoked API tokens belonging to the authenticated user.

# List API Tokens

Returns all active API tokens for the authenticated user.

### Headers

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

### Response

Returns an array of API token metadata objects:

<ResponseField name="id" type="string">
  Token unique ID.
</ResponseField>

<ResponseField name="name" type="string | null">
  Token description or label.
</ResponseField>

<ResponseField name="scopes" type="array">
  Assigned permission scopes.
</ResponseField>

<ResponseField name="plan" type="string">
  Current plan tier (`free`, `pro`, `enterprise`).
</ResponseField>

<ResponseField name="expiresAt" type="string">
  ISO 8601 expiration timestamp.
</ResponseField>

<ResponseField name="createdAt" type="string">
  ISO 8601 creation timestamp.
</ResponseField>

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

<ResponseExample>
  ```json 200 OK theme={null}
  [
    {
      "id": "cmsh98127391823",
      "name": "Cursor Agent",
      "scopes": ["pages:read", "pages:write", "links:write"],
      "plan": "free",
      "expiresAt": "2027-08-31T00:00:00.000Z",
      "createdAt": "2026-08-31T00:00:00.000Z",
      "revoked": false
    }
  ]
  ```
</ResponseExample>
