Sign up

List SSH keys

GET/api/v1/ssh-keys

The keys of the account. Their ids go into ssh_key_ids of Create a VPS and Reinstall.

Example request

curl -X GET "https://platform.serverscamp.com/api/v1/ssh-keys" \
  -H "Authorization: Bearer $API_TOKEN"

Answer

Status 200 with this body.

FieldTypeDescription
itemslist of SSHKeyResponse
items[].idintegerrequiredKey ID
items[].key_namestringrequiredKey name
items[].key_typestringrequiredKey type (ed25519, rsa, ecdsa, etc.)
items[].public_keystringrequiredPublic key in OpenSSH format
items[].fingerprintstringrequiredKey fingerprint (SHA256)
items[].has_private_keybooleanrequiredWhether private key is available for download
items[].created_atstring, optionalCreation timestamp
items[].commentstring, optionalTrailing comment from OpenSSH public key (e.g. user@host)
items[].bitsinteger, optionalKey strength in bits
items[].sourcestring'generated' if private key is stored, else 'imported'
items[].strengthstring'modern' for ed25519/ecdsa, 'legacy' for rsa
items[].statestring'in-use' if at least one VM trusts this key, else 'unused'
items[].last_attached_atstring, optionalWhen the most recent VM using this key was created
items[].trusted_bylist of SSHKeyTrustedVMVMs that have this key installed
items[].trusted_by[].vm_uuidstringrequired
items[].trusted_by[].namestringrequired
totalintegerrequiredTotal number of keys
{
  "items": [
    {
      "id": 42,
      "key_name": "laptop",
      "key_type": "ed25519",
      "public_key": "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAI... me@laptop",
      "fingerprint": "SHA256:7Ke...",
      "has_private_key": false,
      "created_at": "2026-10-20T10:00:00Z"
    }
  ],
  "total": 1
}

Errors

StatusWhen
401No token, or a token that is not valid
422The body or a parameter is not what the operation takes

Every operation can also answer 401 without a valid token. All errors