API operation · backups group
POST
/backups/remote/key
First published 3 Oct 2026
0.1.0Unchanged since publicationGet UrbeStack's SSH public key for remote backups
Who may call it
AdministratorResellerCustomer
Token scope, any of
backupsallAnswers200 OK
UrbeStack creates its Ed25519 key pair on the first call and returns the same public key on subsequent calls. The response contains public_key, fingerprint and any recorded SSH host key in host_key. The private key stays in UrbeStack's state directory and is accessible only to root.
Add the public key to ~/.ssh/authorized_keys for the account specified by backups.remote_user on backups.remote_host. The API returns 403 if the caller lacks administrator privileges.
As a command
Run as root on the serverExample
See the API overview for how to set $API and $TOKEN.Request
curl -sS -X POST "$API/backups/remote/key" \ -H "Authorization: Bearer $TOKEN"
Response ·
200 OK{
"fingerprint": "text",
"host_key": {
"fingerprint": "text",
"name": "alice",
"type": "rebuild"
},
"public_key": "text"
}Errors
3 errors, each a status and a sentence401Authentication required403Insufficient privileges404No host key is recordedNo error of this operation matches.
Generated from release 0.2.35 (current) · the API’s own descriptionThis entry has been unchanged since it was first published in release 0.1.0 on 3 Oct 2026.
urbestack.com/docs/api/post-backups-remote-key/