GPG

Returns a specific GPG public key belonging to a user. The key and subkeys fields can also be requested from the endpoint. See Partial Responses for more details.

get/users/{selected_user}/gpg-keys/{fingerprint}

Request

  • Base URL
    https://api.bitbucket.org/2.0
  • URL
    https://api.bitbucket.org/2.0/users/{selected_user}/gpg-keys/{fingerprint}
  • Auth
    • OAuth 2
      Authorization code: https://bitbucket.org/site/oauth2/authorize
      Token URL: https://bitbucket.org/site/oauth2/access_token scopes: account
    • or HTTP basic
    • or API key in header Authorization

Response

The specific GPG key matching the user and fingerprint.

typestring required
keystring

The GPG key value in X format.

key_idstring

The unique identifier for the GPG key

fingerprintstring

The GPG key fingerprint.

parent_fingerprintstring

The fingerprint of the parent key. This value is null unless the current key is a subkey.

namestring

The user-defined label for the GPG key

expires_onstring date-time
created_onstring date-time
added_onstring date-time
last_usedstring date-time
subkeysGPGAccountKey[] circular

Changes