---
title: "Get public ssh key"
method: GET
path: "/ssh_key/{sshKeyId}"
tags: ["SshKey"]
---

# Get public ssh key

`GET /ssh_key/{sshKeyId}`

## Headers

- `X-Fields` string, mask

## Response `200`

Public ssh key successfully retrieved.

- SshKeyResponseDump
  - `isValid` boolean
  - `name` string
  - `publicKey` string
  - `sshKeyId` integer

## Other responses

- `403` — You have not been granted permission to complete this action. Please contact your account manager to grant the proper permission.
- `404` — Public ssh key not found.

---

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