GitLab API icon

GitLab API

Gitlab

Actions1062

Deploy_tokens → getApiV4ProjectsIdDeployTokensTokenId

AI-generated

Summary

Retrieve a specific deploy token by its ID for a given GitLab project using the GitLab API v4.

Inputs

  • id (required) — The ID or URL-encoded path of the project owned by the authenticated user.
  • token_id (required) — The ID of the deploy token to retrieve.
  • baseUrl — The base URL of the GitLab instance (default: https://gitlab.com).
  • skipAuthentication — Whether to skip authentication (default: false).

Output shape

a single deploy token object returned by the GitLab API

Returns detailed information about the specified deploy token. Requires authentication unless 'Skip Authentication' is enabled. The operation uses a GET HTTP method on the path '/api/v4/projects/{id}/deploy_tokens/{token_id}'.

Examples

Example 1: Retrieve deploy token with project ID '123' and token ID '456'

Set 'id' to '123' and 'token_id' to '456' in path parameters, ensure authentication is enabled.

Links

Discussion