SSH

Returns a specific SSH public key belonging to a user.

get/users/{selected_user}/ssh-keys/{key_id}

Request

  • Base URL
    https://api.bitbucket.org/2.0
  • URL
    https://api.bitbucket.org/2.0/users/{selected_user}/ssh-keys/{key_id}
  • 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 SSH key matching the user and UUID

typestring required
uuidstring

The SSH key's immutable ID.

keystring

The SSH public key value in OpenSSH format.

commentstring

The comment parsed from the SSH key (if present)

labelstring

The user-defined label for the SSH key

created_onstring date-time
last_usedstring date-time
expires_onstring date-time
fingerprintstring

The SSH key fingerprint in SHA-256 format.

Changes

    • warning

      removed the optional property /// from the response with the status

    • info

      api tag SSH added

    • info

      api tag Ssh removed

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status