---
title: "List all deploy tokens"
method: GET
path: "/api/v4/deploy_tokens"
tags: ["deploy_resources"]
---

# List all deploy tokens

`GET /api/v4/deploy_tokens`

## Request

- Base URL: `https://gitlab.com`
- URL: `https://gitlab.com/api/v4/deploy_tokens`
- Auth: none declared

Lists all deploy tokens for the instance.

## Query parameters

- `page` integer
- `per_page` integer
- `active` boolean

## Response `200`

List all deploy tokens

- APIEntitiesDeployToken[]
  - `id` integer, required
  - `name` string, required
  - `username` string, required
  - `expires_at` string, date-time, required
  - `scopes` unknown[], required
    - unknown
  - `revoked` boolean, required
  - `expired` boolean, required

## Other responses

- `401`: Unauthorized
- `403`: Forbidden

---

[API](https://skmtc.dev/gitlab/apis/gitlab-api.md) - [All operations](https://skmtc.dev/gitlab/apis/gitlab-api/llms.txt) - [OpenAPI document](https://skmtc.dev/gitlab/apis/gitlab-api/revisions/b234947ef3f2?raw)
