API operation · backups group
GET
/backups/archive
First published 3 Oct 2026
0.1.0Unchanged since publicationInspect a customer's backup archive for a specific day
Who may call it
AdministratorResellerCustomer
Token scope, any of
backupsreadallAnswers200 OK
UrbeStack uses name and day to select the archive and reads only account.json as root. The archive field in the 200 response contains the customer name, when the backup was created, the domains, the databases with dumps in the archive, counts of mail accounts, SSH keys and FTP accounts, and whether the customer account still exists on this server.
The token requires the backups scope. UrbeStack returns 403 to callers without administrator privileges, 400 if day is missing or fails to match YYYY-MM-DD, and 404 if there is no archive for the specified name and day.
As a command
Run as root on the serverParameters
namequery ·UsernameRequireddayquery ·string, matching ^\d{4}-\d{2}-\d{2}$RequiredExample
See the API overview for how to set $API and $TOKEN.Request
curl -sS -X GET "$API/backups/archive?name=alice&day=2026-09-09" \ -H "Authorization: Bearer $TOKEN"
Response ·
200 OK{
"archive": {
"database_users": 1,
"databases": [
"text"
],
"domains": [
"text"
],
"exists": true,
"exported_at": "text",
"file": "urbestack-panel-20260909T101500Z.json.enc",
"ftp_accounts": 1,
"host": "text",
"mail_accounts": 1,
"name": "alice",
"panel_version": "text",
"scopes": [
"everything"
],
"size": 1,
"ssh_keys": 1,
"user": "alice"
}
}Errors
134 errors, each a status and a sentence400'<zone>' is not a zone this machine knows: timedatectl list-timezones names them400--as-customer restores from --day or --own, never a file400--file and --day/--own exclude each other400--root-owned goes with --file400--server takes no other option but --trust-files400<_> is set per domain, on the PHP page's Domains tab, never as a server default400<dir> is not a day folder of the panel's: no 400<file> is not a customer's archive: its kind is '400<file> is not one of the panel's archives: its account.json is not readable400<file> is not one of the panel's archives: no account.json inside400<file> names no customer400<file> was made by a panel of another schema version (400<info.file> belongs to 400<info.file> is a symbolic link: an archive a plugin hands the panel is a regular file of root's own400<name> has an owner: move them to the administrator before changing their role400<name> is an administrator: administrators have no home, so nothing to back up400<name> is an administrator: administrators have no system account, so no shell400<path> is larger than <MAX_BYTES> bytes400<src.label> is not a customer's archive400<src.label> is not one of the panel's archives: its account.json is not readable400<src.label> is not one of the panel's archives: no account.json inside400<src.label> was made by a panel of another schema version400<user.name> is an administrator: administrators have no home400<value> is kept for the domain's own use; pick another name, like mcp400A day is named YYYY-MM-DD400A deny may not cover loopback400A name is letters, digits and hyphens, up to 32, like mcp400A new job is queued or running400A subdomain belongs to the same user as its parent400A subdomain cannot have a subdomain as its parent400An administrator has no shell: only a customer has a system account400An archive is named <user>-<date>-<time>.tar.gz400An archive of the customer's own is named with the customer400Backup exclude '400Bad entry for <path>400Cannot demote or suspend the last active administrator400Crontab: user '400Document root must be inside <home>400Domain <name>: <user.name> is not a customer account400Domain <name>: a <k> must be a number400Domain <name>: invalid status400Domain <name>: user <user> not found400Domain name required400Domain name too long400Domains belong to users with role 'user'400FTP account '<name>': user '<user>' not found400Invalid IPv4 address400Invalid IPv6 address400Invalid PHP version, expected e.g. 8.2400Invalid boolean400Invalid document root400Invalid domain name400Invalid email address400Invalid id400Invalid mail address400Invalid mail address: local part over 64 characters400Invalid mail address: no local part400Invalid mail address: the local part may hold letters, digits, dots, _ + and -400Invalid package name in export400Invalid package name: letters, digits, spaces, dots, underscores and dashes, up to 64, starting with a letter or digit400Invalid password hash400Invalid password: 8 to 128 printable characters400Invalid port400Invalid role: admin, user or reseller400Invalid setting key400Invalid status400Invalid system password hash400Invalid template name400Invalid username: 2 to 32 lowercase letters, digits or underscores, starting with a letter400Job parameters must be an object400Name the archive: --name USER with --day DAY or --own FILE, or --file PATH400Nothing to change400One scope at a time: --files, --mail, --database NAME or --records, or none for everything400Only a customer has an owner: an administrator or a reseller is the administrator's own400PHP <version> cannot be the default: it is hidden from new choices on this server400PHP <version> cannot be the default: it is not installed on this server400PHP settings must be an object of setting: value400Package <name> belongs to the reseller <pkg.owner>, who is not on this server: import the accounts too, or make the reseller first400Package <name>: unknown limit400Protected folder '<f.path>': user '<f.user>' not found400SSH key '<k.label>': user '<k.user>' not found400Subdomain '<name>' does not sit under '<parent.name>'400The archive holds no database named '<dbname>'400The folder is an absolute path400The profile carries rule <id> twice400The scope is one of 400The second factor can only be turned off here; a user enrols from their own page400The smarthost password in the export is not printable400This export is encrypted; a passphrase is required400Unknown PHP version '<version>'400Unknown job type400Unknown setting '<key>'400Unknown ssl key '<k>'400Username '<value>' is reserved400jobs.keep_days (<keep>) may not be smaller than jobs.show_days (<show>): a job cannot be shown longer than it is kept; 0 keeps them for good400ssl must be an object401Authentication required403Insufficient privileges403The package <p.name> does not include <SWITCH_WHAT>{<switch>}404File not found: <file>404No archive named 404No folder at <dir>404Package '<name>' not found404Parent domain '<parent>' not found404Setting '<key>' not found404User '<at.name>' not found404User '<name>' not found404User '<o.name>' not found404User '<owner>' not found409'<name>' is already an alias here409<key> cannot take that value: <SECOND>{<k>}{on} <sp> (<k>). <SECOND>{<k>}{move}, or choose another409<key> cannot take that value: the panel listens on port <port> (panel.port). Move the panel first, or choose another409<name> is on the package <p.name> of the reseller <p.owner>: change the package before the move409<name> owns <owned> 409<s.subject> cannot take port <port>: 409<s.subject> cannot take port <port>: <why>409<s.subject> cannot take port <port>: it is the panel's port (panel.port)409<user.name> is suspended: an administrator restores a suspended account409<who> and its bandwidth for the month is used up: 409<who> and its disk is used up: 409<why>; pick another name409A change is already armed for revert (409A system account named '<name>' already exists409BotMail is being turned on for <name> already409Domain '<name>' already exists409Sharing is required with this license.409The archive <info.file> is ${name}'s, not 409The package <p.name> allows <limit> 409The panel cannot take port <port>: 409The panel cannot take port <port>: <why>409These are the nameservers of a distribution network with several nodes, and every node lists the same ones. To remove a nameserver or move it to another node, use the actions beside its name on DNS zones › Nameservers & addresses, or urbestack-dns-nameserver409This archive in the backups folder of <o.name> is ${name}'s: restore it at a shell with urbestack-restore --file, which restores it as <name>409This folder needs what this server does not have yet. Install it first, in this order:\n409User '<name>' already existsNo 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/get-backups-archive/