---
title: "List service account tokens"
method: GET
path: "/api/v3/workspaces/{workspace}/service-account-tokens"
tags: ["Service Account Tokens"]
---

# List service account tokens

`GET /api/v3/workspaces/{workspace}/service-account-tokens`

List admin-managed API tokens scoped to this workspace. Caller must be a workspace **admin**.

## Path parameters

- `workspace` string, required

## Query parameters

- `limit` integer
- `offset` integer

## Response `200`

Token list

- ServiceAccountTokenList
  - `tokens` ServiceAccountToken[]
    - `id` string, uuid
    - `name` string
    - `tokenSuffix` string — Last 8 characters of the JWT for identification
    - `createdByName` string, nullable
    - `expiresAt` string, date-time, nullable
    - `isRevoked` boolean
    - `isExpired` boolean
    - `isActive` boolean
    - `lastUsedAt` string, date-time, nullable
    - `createdAt` string, date-time
    - `scopes` ServiceAccountTokenScope[]
      - `id` integer
      - `workspaceId` integer
      - `workspaceName` string
      - `role` string
  - `total` integer

---

[API](https://skmtc.dev/runwhen/apis/runwhen-platform-api.md) · [All operations](https://skmtc.dev/runwhen/apis/runwhen-platform-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/runwhen/runwhen-platform-api/revisions/9d1a64d4b1c1/schema)
