Skip to main content
POST
Add an SSH key to a server
Updated October 21, 2026

Authorizations

X-API-Key
string
header
required

API key for authentication. Each key is bound to a specific account.

Path Parameters

id
string<uuid>
required

VM ID (UUID)

Body

application/json
ssh_key
string
required

A saved key's ID, or one public key (the whole line of a .pub file)

Example:

"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAI... you@laptop"

save_as
string

Also save a public key to your account under this name (ignored for a key you already saved)

Maximum string length: 128

Response

The server's keys after the add

success
boolean
data
object

A server's keys after a read, add or remove

Last modified on October 21, 2026