---
title: "Create an SSH key for a Devbox"
method: POST
path: "/v1/devboxes/{id}/create_ssh_key"
tags: ["Devbox", "Devbox-NetworkTools"]
---

# Create an SSH key for a Devbox

`POST /v1/devboxes/{id}/create_ssh_key`

Create an SSH key for a Devbox to enable remote access.

## Path parameters

- `id` string, required

## Response `200`

OK

- DevboxCreateSshKeyView
  - `id` string, required — The ID of the Devbox.
  - `url` string, required — The host url of the Devbox that can be used for SSH.
  - `ssh_private_key` string, required — The ssh private key, in PEM format.
  - `ssh_user` string, required — The Linux user to use for SSH connections to this Devbox.

## Other responses

- `404` — Devbox not found.

---

[API](https://skmtc.net/runloopai/apis/runloop-api.md) · [All operations](https://skmtc.net/runloopai/apis/runloop-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/runloopai/runloop-api/versions/ef553a04de89/schema)
