Get your free beta license ↗
API operation · backups group
POST

/backups/remote/key

First published 3 Oct 20260.1.0Unchanged since publication

Get UrbeStack's SSH public key for remote backups

Who may call it
AdministratorResellerCustomer
Token scope, any of
backupsall
Answers200 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 server

Example

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 sentence
401Authentication required
403Insufficient privileges
404No host key is recorded
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/