---
title: "Get instance SSH key"
method: GET
path: "/api/v2/instances/{instanceID}/sshkey"
tags: ["Instances"]
---

# Get instance SSH key

`GET /api/v2/instances/{instanceID}/sshkey`

Retrieve the SSH key for an instance.

## Response `200`

An SSH key.

- SshKey — An SSH key.
  - `privateKey` string, required — The SSH private key.

## Other responses

- `400` — Request body failed schema validation, or the request does not contain all the required fields.
- `401` — Authentication failed or the access token has expired.
- `403` — Request was denied by authorization, this may be caused by the authorization token not having the required scope for an API, or the user doesn't have the necessary privileges on the provider platform.
- `404` — Unable to find a resource.
- `500` — An unexpected or unhandled error occurred. This may be a transient error and may succeed on a retry. If this isn't the case, please report it as an issue.

---

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