addSshKey
addSshKey: Store an SSH public key on your account so it can be injected into VPS installs. Idempotent: storing a key you already have returns the existing one instead of creating a duplicate, so it is safe to call before every order. Returns the key id to pass to orderVps or buildVpsInstance. Requires authentication.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | A label for the key, e.g. 'laptop'. | |
| publicKey | Yes | The full single-line OpenSSH public key, e.g. 'ssh-ed25519 AAAA... user@host'. | |
| sessionKey | No | Session key (osk_...) returned by checkDeviceLoginStatus. Pass it on every call when logged in via the in-chat device flow; omit when connected via OAuth. |