---
title: "Get a SSH key"
method: GET
path: "/users/{selected_user}/ssh-keys/{key_id}"
tags: ["SSH"]
---

# Get a SSH key

`GET /users/{selected_user}/ssh-keys/{key_id}`

Returns a specific SSH public key belonging to a user.

## Response `200`

The specific SSH key matching the user and UUID

- SshAccountKey — Represents an SSH public key for a user.
  - `type` string, required
  - `uuid` string — The SSH key's immutable ID.
  - `key` string — The SSH public key value in OpenSSH format.
  - `comment` string — The comment parsed from the SSH key (if present)
  - `label` string — The user-defined label for the SSH key
  - `created_on` string, date-time
  - `last_used` string, date-time
  - `links` object
    - `self` object — A link to a resource related to this object.
      - `href` string, uri
      - `name` string
  - `owner` Account — An account object.
    - `type` string, required
    - `links` AccountLinks — Links related to an Account.
      - `avatar` Link — A link to a resource related to this object.
        - `href` string, uri
        - `name` string
    - `created_on` string, date-time
    - `display_name` string
    - `uuid` string
  - `expires_on` string, date-time
  - `fingerprint` string — The SSH key fingerprint in SHA-256 format.

## Other responses

- `403` — If the specified user or key is not accessible to the current user
- `404` — If the specified user or key does not exist

---

[API](https://skmtc.net/bitbucket/apis/bitbucket-api.md) · [All operations](https://skmtc.net/bitbucket/apis/bitbucket-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/bitbucket/bitbucket-api/versions/4ec8bd2515c5/schema)
