---
title: "List access keys"
method: GET
path: "/api/tokens"
tags: ["Account"]
---

# List access keys

`GET /api/tokens`

## Request

- Base URL: `https://api.xpoz.ai`
- URL: `https://api.xpoz.ai/api/tokens`
- Auth: HTTP bearer

List the caller's active API access keys.

## Response `200`

Access keys.

- object
  - `success` true, required
  - `data` AccessKeyRecord[], required
    - `id` string
    - `descopeUserId` string
    - `userEmail` string
    - `userName` string
    - `authProvider` string
    - `authProviderId` string
    - `accessKeyId` string
    - `accessKey` string
    - `accessKeyPrefix` string
    - `keyName` string
    - `tenantId` string
    - `createdAt` string, date-time
    - `expiresAt` string, date-time, nullable
    - `isActive` boolean
    - `metadata` object
  - `count` integer, required

## Other responses

- `401`: Missing or invalid credentials.
- `500`: Server error.

---

[API](https://skmtc.dev/xpoz/apis/xpoz-api.md) · [All operations](https://skmtc.dev/xpoz/apis/xpoz-api/llms.txt) · [OpenAPI document](https://skmtc.dev/xpoz/apis/xpoz-api/revisions/c18261f587a4?raw)
