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. Requires authentication. Required: name (a label, e.g. 'laptop'), publicKey (a single-line OpenSSH public key, e.g. 'ssh-ed25519 AAAA... user@host'). Returns the key id to pass to orderVps or buildVpsInstance.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| publicKey | Yes | ||
| 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. |