---
title: "Get SSH key details"
method: GET
path: "/v1/ssh-keys/{key-id}"
tags: ["SSH Keys"]
---

# Get SSH key details

`GET /v1/ssh-keys/{key-id}`

Retrieve details of a specific SSH key including its public key.

## Path parameters

- `key-id` integer, required

## Response `200`

SSH key details retrieved successfully

- SshKey
  - `id` integer — SSH key ID
  - `name` string — SSH key name
  - `publicKey` string — Public key in OpenSSH format (included in details and when includePublicKey=true)

## Other responses

- `400` — Invalid key ID
- `401` — Unauthorized
- `404` — SSH key not found

---

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