---
title: "List your service tokens"
method: GET
path: "/api/v1/secure-tokens"
---

# List your service tokens

`GET /api/v1/secure-tokens`

## Request

- Base URL: `https://aicommander.dev`
- URL: `https://aicommander.dev/api/v1/secure-tokens`
- Auth: HTTP bearer

Lists your account's service tokens (active and revoked), newest first. Never returns secrets, nor the raw keyed session id — only id, the friendly machine alias the token is pinned to (null if that machine was removed/rebound), allowed commands, label, and timestamps.

## Response `200`

The account's service tokens (no secrets).

- object
  - `ok` true, required
  - `tokens` object[], required
    - `id` string
    - `machine` string, nullable: The friendly machine alias the token is pinned to, or null if that machine was removed/rebound. The raw keyed session id is never exposed.
    - `commands` string[]
    - `label` string, nullable
    - `created_at` string
    - `last_used_at` string, nullable
    - `revoked_at` string, nullable

## Other responses

- `401`: A token was supplied but is not a valid API key/admin/OAuth token.

---

[API](https://skmtc.dev/aicommander/apis/ai-commander-remote-shell-and-long-running-jobs-api.md) · [All operations](https://skmtc.dev/aicommander/apis/ai-commander-remote-shell-and-long-running-jobs-api/llms.txt) · [OpenAPI document](https://skmtc.dev/aicommander/apis/ai-commander-remote-shell-and-long-running-jobs-api/revisions/a6bb89f779a1?raw)
