GitLab API

GitlabTool

Actions1095

Deploy_tokens → getApiV4GroupsIdDeployTokens

AI-generated

Summary

Retrieve a list of deploy tokens for a specified GitLab group identified by its ID or URL-encoded path, with optional pagination and filtering by active status.

Inputs

  • id (required) — The ID or URL-encoded path of the group owned by the authenticated user to get deploy tokens for.
  • page — Page number of results to retrieve (for pagination). Defaults to 1.
  • per_page — Number of deploy tokens to return per page. Defaults to 20.
  • active — Filter deploy tokens by their active status (true or false).

Output shape

a list of deploy token records associated with the specified group

Supports pagination through 'page' and 'per_page' query parameters. Optional 'active' filter limits results to active/inactive tokens. Requires authentication unless 'Skip Authentication' is enabled.

Examples

Example 1: Retrieve the first 20 active deploy tokens for group with ID 123

Set 'id' path parameter to '123', 'active' query parameter to 'true', and 'page' and 'per_page' as needed.

Links

Discussion