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

# List Tokens

> List all active (non-deleted) API tokens.

## Response

Returns an array of active tokens for the authenticated user. The plaintext token value is **never** included in list responses.

**success** `boolean`

Indicates if the request was successful.

**data** `array`

Array of token objects.

**token object properties**

**tokenId** `string`

Unique identifier for the token.

**name** `string`

The descriptive name given to the token.

**prefix** `string`

First 8 characters of the token for identification (e.g., `okt_a1b2`).

**expiresAt** `string`

ISO 8601 timestamp of when the token expires.

**lastUsedAt** `string | null`

ISO 8601 timestamp of the last time this token was used, or `null` if never used.

**createdAt** `string`

ISO 8601 timestamp of when the token was created.

```json 200 Success theme={null}
{
  "success": true,
  "data": [
    {
      "tokenId": "tok_abc123def456",
      "name": "salesforce-integration",
      "prefix": "okt_a1b2",
      "expiresAt": "2025-04-15T00:00:00.000Z",
      "lastUsedAt": "2025-01-14T08:30:00.000Z",
      "createdAt": "2025-01-15T00:00:00.000Z"
    },
    {
      "tokenId": "tok_xyz789ghi012",
      "name": "hubspot-staging",
      "prefix": "okt_x7y8",
      "expiresAt": "2025-06-01T00:00:00.000Z",
      "lastUsedAt": null,
      "createdAt": "2025-01-10T12:00:00.000Z"
    }
  ]
}
```

> [!NOTE]
>
> This endpoint requires **JWT authentication**. Deleted tokens are not included in the response.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.