---
title: "Get list of SSH keys"
method: GET
path: "/v1/ssh-keys"
tags: ["SSH keys"]
---

# Get list of SSH keys

`GET /v1/ssh-keys`

## Request

- Base URL: `https://api.emma.ms/external`
- URL: `https://api.emma.ms/external/v1/ssh-keys`
- Auth: HTTP bearer

Returns a list of the SSH keys for access to Linux compute instances. You can use these keys to create compute instances. 

The list only contains the SSH keys created by the current Service application that you use to send a request. 

You can't retrieve a list of SSH keys created by other users and applications.

## Response `200`

Successful operation

- SshKey[]
  - `id` integer: SSH key ID
  - `name` string: SSH key name
  - `key` string: SSH public key
  - `fingerprint` string: SSH key fingerprint
  - `keyType` string: SSH key type (RSA or ED25519)
  - `createdAt` string: Date and time when the SSH key was created
  - `createdByName` string: Name of the user who created the SSH key
  - `createdById` integer: ID of the user who created the SSH key

## Other responses

- `401`: Unauthorized
- `403`: Forbidden
- `500`: Internal server error

---

[API](https://skmtc.dev/emma/apis/public-emma-api.md) - [All operations](https://skmtc.dev/emma/apis/public-emma-api/llms.txt) - [OpenAPI document](https://skmtc.dev/emma/apis/public-emma-api/revisions/9e55f0920078?raw)
