---
title: "List API tokens"
method: GET
path: "/api/api-tokens"
tags: ["API Tokens"]
---

# List API tokens

`GET /api/api-tokens`

Returns all API tokens for the current user. Token hashes are never exposed.
Requires admin role.

**Note:** API tokens cannot list other API tokens.

## Response `200`

Array of token metadata.

- ApiToken[]
  - `id` integer, required
  - `name` string, required
  - `scope` 'read-only' | 'deploy-only' | 'full-admin', required
  - `user_id` integer, required
  - `created_at` integer, required — Unix timestamp (seconds).
  - `expires_at` integer, nullable — Unix timestamp (seconds) or null for no expiry.
  - `revoked_at` integer, nullable
  - `last_used_at` integer, nullable

## Other responses

- `403` — Insufficient permissions or license tier.
- `500` — Internal server error.

## Changes

- **2026-06-04** `d58cf9d6195b` — 2 info
  - removed the `ADMIRAL_REQUIRED` enum value from the `code` response property for the response status `403`
  - removed the `ADMIRAL_REQUIRED` enum value from the `code` response property for the response status `500`
- **2026-04-05** `7464894ea582` — 2 warning, 2 info
  - added the new `PAID_REQUIRED` enum value to the `code` response property for the response status `403`
  - added the new `PAID_REQUIRED` enum value to the `code` response property for the response status `500`
  - removed the `PRO_REQUIRED` enum value from the `code` response property for the response status `403`
  - removed the `PRO_REQUIRED` enum value from the `code` response property for the response status `500`

[Change history](https://skmtc.dev/studio-saelix/apis/sencho-api/changes/api/api-tokens/get.md)

---

[API](https://skmtc.dev/studio-saelix/apis/sencho-api.md) · [All operations](https://skmtc.dev/studio-saelix/apis/sencho-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/studio-saelix/sencho-api/revisions/82aac94c016e/schema)
