GitLab API

GitlabTool

Actions1095

Personal_access_tokens → getApiV4PersonalAccessTokensId

AI-generated

Summary

Retrieve a specific personal access token from GitLab using its unique ID.

Inputs

  • id (required) — The unique identifier of the personal access token to retrieve.
  • baseUrl — Optional base URL for the GitLab instance; defaults to https://gitlab.com.
  • skipAuthentication — Boolean to skip authentication if set to true (default is false).

Output shape

A single personal access token record object containing details of the token identified by the provided ID.

Requires authentication via the GitLab API credential unless 'Skip Authentication' is enabled. The operation performs an HTTP GET request to the path '/api/v4/personal_access_tokens/{id}'. The 'id' path parameter is mandatory.

Examples

Example 1: Retrieve token with ID 123

Set 'id' path parameter to '123'; use default base URL and authentication.

Links

Discussion