---
title: "Create SSH key"
method: POST
path: "/storage/v4/ssh_keys"
tags: ["SSHKeys"]
---

# Create SSH key

`POST /storage/v4/ssh_keys`

Creates an SSH public key for SFTP storage access. These keys are used for passwordless authentication to SFTP storages.

## Request body

- SSHKeyCreateBodyV4
  - `name` string, required — User-defined name for the SSH key
  - `public_key` string, required — The SSH public key content (ssh-rsa or ssh-ed25519 format)

## Response `201`

SSHKeyV4

- SSHKeyV4
  - `created_at` string, date-time, required — ISO 8601 timestamp when the SSH key was created
  - `id` integer, required — Unique identifier for the SSH key
  - `name` string, required — User-defined name for the SSH key
  - `public_key` string, required — The SSH public key content

## Other responses

- `400` — ErrResponse
- `401` — ErrResponse
- `409` — ErrResponse

---

[API](https://skmtc.dev/g-core/apis/gcore-openapi.md) · [All operations](https://skmtc.dev/g-core/apis/gcore-openapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/g-core/gcore-openapi/revisions/09e652815095/schema)
