---
title: "Create Ssh Key"
method: POST
path: "/v1/ssh_keys"
tags: ["Authentication"]
---

# Create Ssh Key

`POST /v1/ssh_keys`

## Headers

- `xi-api-key` string, nullable
- `x-api-key` string, nullable

## Request body

- SshKeyIn
  - `name` string, required — SSH Key name
  - `key` string, required — SSH Key content

## Response `200`

Successful Response

- SshKeyOut
  - `id` string, required — SSH Key ID
  - `name` string, required — SSH Key name
  - `key` string, required — SSH Key content
  - `created_at` integer

## Other responses

- `409` — Conflict
- `422` — Validation Error

---

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