Overview

The SSH Keys API stores SSH public/private key pairs, generates new keys with ssh-keygen, imports existing private keys to derive their public keys, and returns fingerprints for key identification. Keys are scoped to the authenticated user.

Base URL

All endpoints require a valid Bearer token in the Authorization header. See Authentication for details.

Endpoints

List keys

Response:

Store key

Request body:
Response:

Generate key

Request body:
Response:
Supported key types: ed25519, rsa, ecdsa. RSA defaults to 4096 bits; ed25519 and ecdsa are always 256 bits. The fingerprint is the lowercase hex MD5 digest of the trimmed public key text, not the colon-separated ssh-keygen -l form.

Import key

Request body:
Response:

Error codes