GitLab API

GitlabTool

Actions1095

Personal_access_tokens → getApiV4PersonalAccessTokens

AI-generated

Summary

Retrieve a list of personal access tokens from the GitLab API, applying optional filters via query parameters to narrow down the results.

Inputs

  • skipAuthentication — Set to true to bypass the default authentication, otherwise uses the GitLab API credentials.
  • baseUrl — Specify the base URL for the GitLab instance (default is https://gitlab.com).
  • method — HTTP method to use for the request, default is GET.
  • queryParameters — Optional filters for the request such as user_id, revoked status, token state (active or inactive), creation and last used timestamps, search by token name, sorting, and pagination settings (page and per_page).

Output shape

a list of personal access tokens

Returns a paginated list of personal access tokens matching the optional filter criteria. Pagination is controlled through the 'page' and 'per_page' query parameters. The response shape corresponds to the GitLab API v4 format for personal access tokens.

Links

Discussion