Add an SSH public key
POST
Registers an SSH public key for use when creating a VPS.
Access: API key: ssh_key:write · Session: developer, admin or owner.
- Supports Ed25519, RSA, ECDSA and security-key types. Comments are removed; duplicate keys are rejected.
header
AuthorizationBearer <token>Send Authorization: Bearer <token>. A token is an API key (lb_live_…, scoped, for programs) or a session (lb_sess_…, from signup or login, for people). See Authentication above.
X-Org-ID?stringSessions only: act on this organization (you must be a member). Default: your first organization.
application/json- body
name*stringLength
length <= 64public_key*stringOne public key in authorized_keys format. Comments are ignored.
Key added
application/json- response
id*stringname*stringpublic_key*stringfingerprint*stringcreated_at*stringFormat
date-timecurl -X POST 'https://layerbeat.com/v1/ssh-keys' \ -H 'Content-Type: application/json' \ -d '{ "name": "laptop", "public_key": "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOMq… you@laptop"}'{ "id": "key_m2q8vx4zt7kd5wn3bj6hf9cpra", "name": "laptop", "public_key": "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOMqqnkVzrm0SdG6UOoqKLsabgH5C9okWi0dh2l9GKJl", "fingerprint": "SHA256:Zk1e3xT0aPq…", "created_at": "2026-10-01T10:00:00Z"}