---
title: "Create SSH Key"
method: POST
path: "/ssh_keys"
tags: ["SSH Keys"]
---

# Create SSH Key

`POST /ssh_keys`

Allows you create SSH Keys. These keys can be used to access servers after deploy and reinstall actions.

## Request body

- object
  - `data` object, required
    - `type` 'ssh_keys', required
    - `attributes` object
      - `name` string, required — Name of the SSH Key
      - `project` string — Project ID or slug
      - `public_key` string, required — SSH Public Key

## Response `201`

Created

## Changes

> 29 revisions in range; 23 could not be searched.

- **2026-07-21** `885dec47dd47` — 3 info
  - added the optional property `data/attributes/project/stats/databases` to the response with the `201` status
  - added the optional property `data/attributes/project/stats/storages` to the response with the `201` status
  - added the optional property `data/attributes/project/stats/virtual_machines` to the response with the `201` status

[Change history](https://skmtc.dev/latitude/apis/latitude-sh-api/changes/ssh_keys/post.md)

---

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