GitLab API icon

GitLab API

Gitlab

Actions1062

Users → getApiV4UsersIdKeysKeyId

AI-generated

Summary

Retrieves a specific SSH key for a given GitLab user.

Inputs

  • id (required) — The ID of the user (integer)
  • key_id (required) — The ID of the SSH key (integer)
  • skipAuthentication — If true, bypass credential authentication (boolean, default false)
  • baseUrl — Base URL of the GitLab instance (string, default https://gitlab.com)

Output shape

Returns the SSH key object as defined by the GitLab API (JSON).

Authentication uses the 'gitlabApi' credential unless skipAuthentication is set.

Examples

Example 1: Fetch SSH key 12 for user 5

Set id=5, key_id=12, leave skipAuthentication false, use default baseUrl

Links

Discussion