---
title: "Get api tokens for project."
method: GET
path: "/api/admin/projects/{projectId}/api-tokens"
tags: ["Projects"]
---

# Get api tokens for project.

`GET /api/admin/projects/{projectId}/api-tokens`

Returns the project-specific [API tokens](https://docs.getunleash.io/concepts/api-tokens-and-client-keys) that have been created for this project.

## Path parameters

- `projectId` string, required

## Response `200`

apiTokensSchema

- ApiTokensSchema — An object with [Unleash API tokens](https://docs.getunleash.io/concepts/api-tokens-and-client-keys)
  - `tokens` ApiTokenSchema[], required — A list of Unleash API tokens.
    - `secret` string, nullable — The token used for authentication.
    - `tokenName` string, required — A unique name for this particular token
    - `type` 'client' | 'admin' | 'frontend' | 'backend', required — The type of API token
    - `environment` string — The environment the token has access to.
    - `project` string — The project this token belongs to.
    - `projects` string[], required — The list of projects this token has access to. If the token has access to specific projects they will be listed here. If the token has access to all projects it will be represented as `[*]`
    - `expiresAt` string, date-time, nullable — The token's expiration date. NULL if the token doesn't have an expiration set.
    - `createdAt` string, date-time, required — When the token was created.
    - `seenAt` string, date-time, nullable — When the token was last seen/used to authenticate with. NULL if the token has not yet been used for authentication.
    - `alias` string, nullable — Alias is no longer in active use and will often be NULL. It's kept around as a way of allowing old proxy tokens created with the old metadata format to keep working.
    - `secure` boolean, nullable — True if using the new api token format. This means copy token will no longer work

## Other responses

- `401` — Authorization information is missing or invalid. Provide a valid API token as the `authorization` header, e.g. `authorization:*.*.my-admin-token`.
- `403` — The provided user credentials are valid, but the user does not have the necessary permissions to perform this operation
- `404` — The requested resource was not found.

---

[API](https://skmtc.net/unleash/apis/unleash-api-3.md) · [All operations](https://skmtc.net/unleash/apis/unleash-api-3/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/unleash/unleash-api-3/versions/b2c3116e633e/schema)
