Skip to main content
POST
Add an SSH public key

Authorizations

Authorization
string
header
required

An opaque access token from /login or /refresh. Tokens are checked against the database on every request, so revocation is immediate.

Body

application/json
label
string
required
Example:

"laptop"

public_key
string
required

A full authorized_keys line.

Example:

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

Response

Key added

id
string<uuid>
label
string
fingerprint
string

SHA256 fingerprint, matching ssh-keygen output.