---
title: "Describe SSH key"
method: GET
path: "/ssh-keys/{keyId}"
tags: ["ssh-keys"]
---

# Describe SSH key

`GET /ssh-keys/{keyId}`

Retrieves the details of an SSH public key by its ID.

## Path parameters

- `keyId` integer, required

## Response `200`

OK

- DescribeSshKeyResponse
  - `sshKey` UserSshPublicKeyDto
    - `dateCreated` string, date-time
    - `id` integer
    - `lastUsed` string, date-time
    - `name` string
    - `publicKey` string

## Other responses

- `400` — Bad request
- `403` — Operation not allowed
- `404` — SSH key not found

---

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