/backups/accounts
0.2.0Unchanged since publicationList customers and their nightly backup status
backupsreadallEach entry includes the customer's name, package and account state. The backups field indicates whether nightly backups are enabled for the customer, and in_run indicates whether tonight's run includes them. For excluded customers, out_reason is off if nightly backups are disabled for the account or suspended if the account is suspended and backups.skip_suspended is on. The nights field counts finished archives under backups.dir by day for comparison with backups.keep_days. The latest field gives the newest archive's day and size.
The last_night field reports the day and outcome from the last full run for each customer. The outcome is archived with the archive size, refused with a disk-space error, failed with the error message, out with the exclusion reason, or none if the customer was absent from the run. Runs started with user through POST /backups/run are skipped. Customers with refused or failed outcomes appear first, with entries sorted by name within each group.
Omit q, status, page and per_page to return all customers. Supply any of them to request a page. The response gives total across all matching pages, page, pages and more, which is true when another page follows. The counts field totals each status after applying q and before applying status. The API returns 400 for an unrecognized status and 403 if the caller lacks administrator privileges.
As a command
Run as root on the serverParameters
qquery ·string, up to 200 charactersstatusquery ·string, one of refused, failed, out, shortpagequery ·integer, 1 or moreper_pagequery ·integer, 1 to 1000Example
See the API overview for how to set $API and $TOKEN.curl -sS -X GET "$API/backups/accounts?q=text&status=refused&page=1&per_page=1" \ -H "Authorization: Bearer $TOKEN"
200 OK{
"accounts": [
{
"backups": true,
"in_run": true,
"keep_days": 1,
"last_night": {
"day": "2026-09-09",
"error": "Domain 'example.com' already exists",
"reason": "text",
"size": 1,
"state": "archived"
},
"latest": {
"day": "2026-09-09",
"modified_at": "text",
"size": 1
},
"name": "alice",
"nights": 1,
"out_reason": "",
"package": "basic",
"status": "active"
}
],
"counts": {
"all": 1,
"failed": 1,
"out": 1,
"refused": 1,
"short": 1
},
"keep_days": 1,
"last_night": "text",
"more": true,
"page": 1,
"pages": 1,
"per_page": 1,
"total": 1
}Errors
5 errors, each a status and a sentence400Invalid <what>: expected a non-negative integer400per_page is a number from 1 to 1000400status is one of 401Authentication required403Insufficient privilegesurbestack.com/docs/api/get-backups-accounts/