Docs
Live demo

Generate a new SSH key pair

POST/api/v2/ssh-keys

Generate a new ED25519 SSH key pair. The private key is returned only once at creation time and stored securely in OpenBao. Idempotency-Key is refused because the answer carries the private key.

Returns the ED25519 private key once and refuses Idempotency-Key.

Request body application/json · CreateSSHKeyRequest

SSH key creation request

Required1 of 1 fields
namestringrequired
min length 1 · max length 255

Responses

201

Created

SSHKeyCreatedResponse · 8 fields
algorithmstring
created_atstring
fingerprintstring
idstring
namestring
private_keystring
public_keystring
tunnel_countinteger

Number of SSH tunnels that sign in with the key. Always 0 for a new key.

409

SSH key with this fingerprint already exists

Common errors: 400 401 403 413 429 503 504. They mean the same for every operation, see Errors.

↑ ↓ to moveEnter to openEsc to close