v12

latestOpenAPI 3.0.3raw.githubusercontent.com2026-06-1811583196.1 KB
SSH Keys

Create SSH key

Add an SSH public key to your account. Pass the key on VM create via the ssh_keys array to enable key-based login.

Supported key types: RSA, ECDSA, Ed25519. The key_type field on the response is parsed automatically from the public key.

post/api/v1/ssh-keys

Request body

namestring required

SSH key display name

public_keystring required

Full SSH public key string

Example request

{
  "name": "laptop",
  "public_key": "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAI... user@host"
}

Response

SSH key created

successboolean

Example response

{
  "data": {
    "name": "laptop"
  }
}