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

# List API tokens

`GET /api-tokens`

## Request

- Base URL: `https://app.openpo.st/api/v1`
- URL: `https://app.openpo.st/api/v1/api-tokens`
- Auth: one of:
  - HTTP bearer
  - API key in cookie `openpost_session`

## Response `200`

OK

- APITokenResponse[], nullable
  - `created_at` string, required: Creation time
  - `expires_at` string: Token expiry time
  - `id` string, required: API token ID
  - `identity_provider_id` string: Identity provider assurance bound to this token
  - `last_used_at` string: Last successful authentication time
  - `name` string, required: User-visible token name
  - `organization_id` string: Organization this token is bound to by SSO policy
  - `revoked_at` string: Revocation time
  - `scope` string, required: Token scope
  - `status` 'active' | 'expired' | 'revoked', required: Current token status
  - `token_prefix` string, required: First 8 hex characters of the token secret hash
  - `workspace_id` string: Optional workspace ID this token is limited to

## Other responses

- `default`: Error

---

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