---
title: "Create SSH key"
method: POST
path: "/ssh-keys"
tags: ["ssh-keys"]
---

# Create SSH key

`POST /ssh-keys`

Creates a new SSH public key with the details in the given request body.

## Request body

- CreateSshKeyRequest
  - `name` string, required
  - `publicKey` string, required

## Response `200`

OK

- CreateSshKeyResponse
  - `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
- `409` — Duplicated element

## Changes

> 14 revisions in range; 1 not diffed.

- **2026-03-10** `49c99a6944de` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/seqeralabs/apis/seqera-api/changes/ssh-keys/post.md)

---

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