---
title: "List all deployment tokens for a project"
method: GET
path: "/projects/{project_id}/deployment-tokens"
tags: ["Deployment Tokens"]
---

# List all deployment tokens for a project

`GET /projects/{project_id}/deployment-tokens`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/projects/{project_id}/deployment-tokens`
- Auth: HTTP bearer

## Path parameters

- `project_id` integer, required

## Query parameters

- `page` integer
- `page_size` integer

## Response `200`

List of deployment tokens

- DeploymentTokenListResponse
  - `tokens` DeploymentTokenResponse[], required
    - `created_at` string, date-time, required
    - `created_by` integer, nullable
    - `deployment_id` integer, nullable
    - `environment_id` integer, nullable
    - `expires_at` string, date-time, nullable
    - `id` integer, required
    - `is_active` boolean, required
    - `last_used_at` string, date-time, nullable
    - `name` string, required
    - `permissions` string[], nullable
    - `project_id` integer, required
    - `token_prefix` string, required
  - `total` integer, required

## Other responses

- `401`: Unauthorized
- `403`: Insufficient permissions
- `500`: Internal server error

## Changes

- **2026-07-27** `1b060c0a4ba3`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/projects/:project_id/deployment-tokens/get.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
