---
title: "List your personal access tokens"
method: GET
path: "/api-tokens"
tags: ["developer"]
---

# List your personal access tokens

`GET /api-tokens`

## Request

- Base URL: `https://api.onplana.com/api`
- URL: `https://api.onplana.com/api/api-tokens`
- Auth: HTTP bearer

Returns all non-revoked PATs for the authenticated user across all organizations. **JWT only** - PATs cannot list tokens.

## Response `200`

Array of token records (no secrets)

- ApiToken[]
  - `id` string, uuid, required
  - `name` string, required: Human-readable label for this token
  - `tokenPrefix` string, required: First 12 chars of the token (e.g. "pat_AbCdEfGh") - safe to display
  - `scopes` string[], required
  - `organizationId` string, uuid, required
  - `orgPlan` string: Plan snapshot at creation time
  - `expiresAt` string, date-time, nullable
  - `lastUsedAt` string, date-time, nullable
  - `createdAt` string, date-time, required
  - `organization` object
    - `name` string
    - `slug` string

## Other responses

- `400`: Validation error
- `401`: Unauthorized - missing or invalid JWT

---

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