Skip to main content
POST
/
ssh-keys
Add an SSH key
curl --request POST \
  --url https://console.cloudblast.io/api/v2/ssh-keys \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "My Laptop",
  "public_key": "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAA..."
}
'
{
  "data": {
    "id": 1,
    "name": "My Laptop",
    "fingerprint": "a1:b2:c3:d4:e5:f6:a1:b2:c3:d4:e5:f6:a1:b2:c3:d4",
    "public_key": "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAA...",
    "created_at": "2026-01-10T14:00:00+00:00"
  }
}

Authorizations

Authorization
string
header
required

API token from your CloudBlast account settings. Pass as Authorization: Bearer <token>.

Body

application/json
name
string
required

Display name for the key

Maximum string length: 40
Example:

"My Laptop"

public_key
string
required

The SSH public key

Example:

"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAA..."

Response

SSH key created

data
object