Add an SSH key
Registers a public key to you. Accepted: Ed25519, ECDSA (P-256, P-384, P-521), the FIDO security-key forms sk-ssh-ed25519@openssh.com and sk-ecdsa-sha2-nistp256@openssh.com, and RSA of at least 3072 bits. Refused with a 400: DSA, shorter RSA, certificates, a line with authorized_keys options in front of the key, and anything that is not one key on one line.
A key can belong to one person only; registering one that is already registered is a 409. Each person may hold eight; the ninth is a 409.
The key is bound to the account this API key (or connected app) acts on, and to the credential itself: it is written into every computer with SSH on, on that account only, within moments, and it is removed when the credential is revoked. A key added from the dashboard instead reaches every account where you are an owner or member. The answer does not wait for the computers.
An API key confined to a workspace cannot add or remove SSH keys (403): an SSH key reaches further than that workspace.
Requires the member role or higher.
Request
- Base URL: https://app.mandala.computer/api/v1
- URL: https://app.mandala.computer/api/v1/ssh-keys
- Auth: HTTP bearer
Request body
Response
The key as registered.
Changes
No recorded changes to this operation across all 1 revision of this API.