GitLab API icon

GitLab API

Gitlab

Actions1062

Deploy_tokens → getApiV4ProjectsIdDeployTokens

AI-generated

Summary

Retrieve a list of deploy tokens for a specified project in GitLab using its project ID or URL-encoded path, optionally filtering by pagination and active status.

Inputs

  • id (required) — The ID or URL-encoded path of the project owned by the authenticated user.
  • page — Current page number to paginate through deploy tokens.
  • per_page — Number of deploy tokens to return per page.
  • active — Filter deploy tokens by their active status (true or false).

Output shape

a list of deploy token objects associated with the specified project

Supports pagination via 'page' and 'per_page' query parameters. The returned list can be filtered by active status using the 'active' query parameter. Requires authentication unless 'Skip Authentication' is enabled.

Examples

Example 1: Retrieve the first 20 active deploy tokens for project with ID or path 'my-group/my-project'

Set 'id' to 'my-group/my-project', 'page' to 1, 'per_page' to 20, and 'active' to true.

Links

Discussion