List Backups
List an application's backups, along with what your plan lets you do. The app's own backups are its content backups (a gzipped tar of the content volume) and full backups (the content volume plus a gzipped SQL dump of its database) — today, a Managed WordPress site's. Requires Endpoints read.
kind: "database") is the database's: manage it with the database backups API (/v1/databases/{uuid}/backups), which also covers databases no app uses. These app routes keep a compatibility path for kind: "database": it acts on the app's primary database — the one it was bound to the older way, else the database connected with no prefix that reaches production (the one behind its DB_* variables) — under the same rules and permissions as the database routes. An app with several databases reaches only that one here; the others' backups are on their own database.
Through the compatibility path, when the app has a database the list also holds that database's backups (each with database_uuid; up to its newest 100) if the caller has Databases read, and database names it.
Response (200 OK)
true when your plan grants none of the backup entitlements — nothing on this app can be backed up or restored.db_backup, db_restore, content_backup, content_restore, schedule (all bool). Each is true only when the app has that resource and the plan entitles the op; the db_* ones need the app's database to be ready.true when the app has something to back up: a ready database or a content volume.backup_retention_max).null if none (see Get Backup Schedule). The database's schedule is on the database.{uuid, name}, whose backups live at /v1/databases/{uuid}/backups; null when the app has none.Backup object
{backup_uuid} of restore, download and delete).application_uuid.kind: "database"), and on a full backup that recorded its database.database, content, or full.manual or scheduled.pending, running, completed, failed, or deleting.none, restoring, restored, or failed.0 for an artifact the kind doesn't include, or until it completes).Create a Backup
Take a backup on demand. Ngris queues the job; the backup is created with status: "pending" and moves to completed when the dump and upload finish. Only one of the app's own backups runs at a time. Requires Endpoints write; refused while the app is paused over the plan's limits.
kind: "database" is a backup of the app's database (the compatibility path): the same as POST /v1/databases/{uuid}/backups on its primary database, so it also needs Databases write, and it answers the database's 409s (backup_in_progress, database_status). The created backup carries database_uuid and no application_uuid.
Request body (application/json)
database, content, or full (the default). database backs up the app's database (above); content archives the content volume; full does both and records which database it dumped.Response (201 Created)
Returns the newly created backup object (same shape as in the list).
Errors
database or full), or This app has no content volume to back up. (content or full).database, backup_in_progress or database_status; quota_paused when the app is paused.Restore a Backup
Restore a completed backup into the running app. The call is accepted asynchronously; poll GET /backups and watch the backup's restore_status (restoring → restored, or failed). The restore is gated by the entitlement that matches the backup's kind — database restore for a database backup, content restore for a content backup, both for a full one. Requires Endpoints write; refused while the app is paused over the plan's limits.
A database's backup (compatibility path) is restored like its database route: it also needs Databases update, is refused while the database is paused (quota_paused) or a restore into it runs (restore_in_progress), and the 202 adds warning (naming every connected app), connected_apps and database {uuid, name}.
Response (202 Accepted)
restoring.Errors
quota_paused; for a database's backup also restore_in_progress, database_status and backup_not_restorable.Download a Backup Artifact
Stream a completed backup's raw artifact for an off-platform copy. The database artifact is a gzipped SQL dump; the content artifact is a gzipped tar of the content volume. The response is Content-Type: application/gzip, served as an attachment named <app uuid>-<backup uuid>-<artifact>.sql.gz (database) or .tar.gz (content). Requires Endpoints read.
A database artifact (of a full backup or of a database's backup) is the database's data: downloading it also needs the role's Database data read permission, as on the database route, and every such download is recorded in the account audit log.
A content artifact holds the app's files with its secrets (for WordPress, wp-config.php with the database password and the security keys): downloading it needs Endpoints write, the permission that also shows a WordPress site's admin password.
Query parameters
database (the default) or content.Errors
database artifact, or no Endpoints write for a content artifact.completed yet.Delete a Backup
Remove a backup — both its stored artifacts (the SQL dump and content tar) and its record. This is permanent. Requires Endpoints write. Deleting a database's backup here (compatibility path) also needs Databases delete; a database's backup that is still pending or running answers 404 here (the database route answers 409 backup_not_deletable).
Response (204 No Content)
An empty body on success.
Errors
Get Backup Schedule
Read the app's automatic backup schedule and the plan's retention cap. A schedule runs one backup of the chosen kind daily or weekly at a fixed UTC hour, keeping the most recent retain_count backups. Requires Endpoints read.
When the app has a database, the response also names it (database, {uuid, name}) and, if the caller has Databases read, carries that database's schedule as database_schedule (or null).
Response (200 OK)
null when no schedule is set; otherwise the schedule object.database, content, or full.daily or weekly.0–23.retention_max).backup_retention_max).{uuid, name}.Update Backup Schedule
Create or update the automatic backup schedule. retain_count is clamped to the plan's backup_retention_max. Enabling a schedule requires the application_backup_schedule entitlement; a downgraded account may still disable one. Automatic schedules are auto-disabled if the account later loses the entitlement. Requires Endpoints write; refused while the app is paused over the plan's limits.
kind: "database" sets the app's database's schedule (the compatibility path), as PUT /v1/databases/{uuid}/backup-schedule does: it also needs Databases update, follows the database's rules, and answers {"schedule": {…}, "database": {uuid, name}} with the database's schedule.
Request body (application/json)
content or full for the app's own schedule; database for its database's schedule (above). database and full need a ready database and the plan's application_db_backup, even to turn a schedule off.daily or weekly.0–23.Response (200 OK)
Returns the saved schedule under schedule.
Errors
enabled: true).