Previously, the API could replace a site user’s SSH keys, but couldn’t tell you which keys were already there, so adding a key safely meant checking the dashboard or the server first. You can now see which SSH keys a site user has with the API. The site endpoints return an ssh_keys list with each key’s ID, name, and fingerprint.

Two new endpoints let you add or remove a single key without affecting the site user’s other keys. So you can give someone SSH access without first checking which keys are already there, and without risking removing an existing key.

You can also manage the SSH keys on your account with the API. Add an SSH key with a name and public key, then add it to any site user. Delete an SSH key to remove it from your account and from every site user and sudo user that has it.

These endpoints are also supported in the latest versions of the PHP SDK (v1.3.2) and the SpinupWP CLI (v1.3.3).