GitLab API

GitlabTool

Actions1095

User → getApiV4UserGpgKeysKeyId

AI-generated

Summary

Fetches a GPG key for the authenticated GitLab user by key ID using the configured HTTP method. The base URL defaults to https://gitlab.com; authentication can be skipped, and the GitLab API credential is used when authentication is enabled.

Inputs

  • Skip Authentication — Defaults to false. When enabled, skips the GitLab API credential.
  • Base URL — Defaults to https://gitlab.com; the source indicates the actual base URL is defined by the GitLab API credential.
  • Method — HTTP method for the request; defaults to GET. Options are GET, POST, PUT, DELETE, HEAD, and PATCH.
  • Key_id (required) — GPG key ID used in the request path /api/v4/user/gpg_keys/{key_id}.

Output shape

A single response from the GitLab API.

The response fields are not specified by the provided properties or source. Authentication uses the GitLab API credential unless skipped.

Links

Discussion