---
title: "Gets an SSH key."
method: GET
path: "/ssh-keys/{sshKeyId}"
tags: ["SSH Keys"]
---

# Gets an SSH key.

`GET /ssh-keys/{sshKeyId}`

## Request

- Base URL: `https://api.acquia.com/v3`
- URL: `https://api.acquia.com/v3/ssh-keys/{sshKeyId}`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/acquia/apis/acquia-cloud-platform-api/docs/ssh-keys/:sshKeyId/get.ts> (a function with typed inputs; its response is checked against the schema)

Gets an SSH key by SSH Key ID.

## Path parameters

- `sshKeyId` string, required

## Response `200`

OK

- SSHKeyServiceAPISshKey: Details an SSH key.
  - `id` string, required: The unique identifier of the SSH key.
  - `label` string, required: The human-readable key label.
  - `public_key` string, required: The public key.
  - `fingerprint` string, required: The public key fingerprint.
  - `created_at` string, date-time, required: The key creation date.
  - `user_id` string, required: The unique identifier of the user who owns this SSH key.
  - `_links` object, required: HAL links for the resource
    - `self` SSHKeyServiceAPIHalLink, required: HAL link object
      - `href` union, required: The target URI of the link (can be a URI or URI template)
        - string, uri
        - string, uri-template
      - `templated` boolean: Whether the link is a URI template
      - `type` string: Hint about the media type expected when dereferencing the target resource
      - `deprecation` string: A URL to a resource that provides deprecation information
      - `name` string: A secondary key for selecting links
      - `profile` string: A URI that hints about the profile of the target resource
      - `title` string: A human-readable identifier for the link
      - `hreflang` string: The language of the target resource
  - `_embedded` object: Embedded resources (optional)

## Other responses

- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found
- `500`: Internal Server Error

---

[API](https://skmtc.dev/acquia/apis/acquia-cloud-platform-api.md) - [All operations](https://skmtc.dev/acquia/apis/acquia-cloud-platform-api/llms.txt) - [OpenAPI document](https://skmtc.dev/acquia/apis/acquia-cloud-platform-api/revisions/508f8f94456d?raw)
