List Backups

GET /v1/applications/{uuid}/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.

Database backups belong to the database. A backup of a database alone (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)

locked bool
true when your plan grants none of the backup entitlements — nothing on this app can be backed up or restored.
capabilities object
Which operations are available for this app on your plan: 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.
has_backable bool
true when the app has something to back up: a ready database or a content volume.
retention_max int
The plan cap on how many backups a schedule retains (backup_retention_max).
items array
The backups, newest first (see the object fields below): the app's own, plus its database's.
schedule object | null
The app's own automatic schedule, or null if none (see Get Backup Schedule). The database's schedule is on the database.
database object | null
The app's primary database, {uuid, name}, whose backups live at /v1/databases/{uuid}/backups; null when the app has none.

Backup object

uuid string (uuid)
The backup identifier (the {backup_uuid} of restore, download and delete).
application_uuid, account_uuid string (uuid)
The app and the account the backup belongs to. A database's backup has no application_uuid.
database_uuid string (uuid)
The database the dump is taken from: on a database's backup (kind: "database"), and on a full backup that recorded its database.
kind string
database, content, or full.
trigger_source string
manual or scheduled.
status string
pending, running, completed, failed, or deleting.
restore_status string
none, restoring, restored, or failed.
db_size_bytes / content_size_bytes int
Size of the captured SQL dump and content tar (0 for an artifact the kind doesn't include, or until it completes).
error / restore_error string?
Failure detail for the backup / restore. Omitted unless it failed.
created_at / updated_at datetime
RFC 3339 UTC timestamps.
started_at / completed_at / restored_at datetime?
When the backup started and completed, and when it was last restored. Each is omitted until it happens.
expires_at datetime?
The retention horizon set when the backup completed: after it, retention may remove the backup. Omitted when none is set.
Request
curl "https://api.ngris.com/v1/applications/019be838-d261-7d9b-9499-71995a3a91c6/backups" \ -H "X-API-KEY: <your_api_key>"
Response — 200 OK (abridged)
{ "locked": false, "capabilities": { "db_backup": true, "db_restore": true, "content_backup": true, "content_restore": true, "schedule": true }, "has_backable": true, "items": [ { "uuid": "019c008d-14e8-7dc9-93c0-b24f6b94d087", "application_uuid": "019be838-d261-7d9b-9499-71995a3a91c6", "account_uuid": "019a68b9-1a79-7820-a884-41f554aba6bd", "kind": "full", "trigger_source": "manual", "status": "completed", "restore_status": "none", "db_size_bytes": 1048576, "content_size_bytes": 8388608, "created_at": "2026-08-12T03:00:00Z", "updated_at": "2026-08-12T03:00:42Z", "started_at": "2026-08-12T03:00:02Z", "completed_at": "2026-08-12T03:00:42Z" } ], "schedule": { "enabled": true, "kind": "full", "frequency": "daily", "hour_utc": 3, "retain_count": 7, "last_run_at": "2026-08-12T03:00:00Z", "next_run_at": "2026-08-13T03:00:00Z" }, "database": { "uuid": "019c2a41-7d3e-7b52-a1c4-5e9f0b3d6a18", "name": "my-blog" } }

Create a Backup

POST /v1/applications/{uuid}/backups

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)

kind string
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

400
invalid backup kind, No ready managed database to back up. (database or full), or This app has no content volume to back up. (content or full).
403
Database backup is not available on your plan. / Content backup is not available on your plan., or a missing permission.
409
A backup is already in progress. (the app's own backups); for database, backup_in_progress or database_status; quota_paused when the app is paused.
Request
curl -X POST \ "https://api.ngris.com/v1/applications/019be838-d261-7d9b-9499-71995a3a91c6/backups" \ -H "X-API-KEY: <your_api_key>" \ -H "Content-Type: application/json" \ -d '{ "kind": "full" }'
Response — 201 Created
{ "uuid": "019c04e2-7a19-7c3d-b5e0-2f8d61a9c4b7", "application_uuid": "019be838-d261-7d9b-9499-71995a3a91c6", "account_uuid": "019a68b9-1a79-7820-a884-41f554aba6bd", "kind": "full", "trigger_source": "manual", "status": "pending", "restore_status": "none", "created_at": "2026-08-12T12:00:00Z" }

Restore a Backup

POST /v1/applications/{uuid}/backups/{backup_uuid}/restore
Destructive. Restore overwrites the app's current database and/or content volume with the backup's contents. There is no undo — anything written since the backup was taken is replaced. A database is replaced for every app connected to it, not only this one. In the dashboard this is behind an explicit confirmation.

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)

status string
restoring.
warning, connected_apps, database
Only for a database's backup: what the restore does, the apps it affects, and the database.

Errors

403
Database restore is not available on your plan. / Content restore is not available on your plan. (matched to the backup's kind), or a missing permission.
404
Application or backup not found.
409
Only a completed backup can be restored.; quota_paused; for a database's backup also restore_in_progress, database_status and backup_not_restorable.
Request
curl -X POST \ "https://api.ngris.com/v1/applications/019be838-d261-7d9b-9499-71995a3a91c6/backups/019c008d-14e8-7dc9-93c0-b24f6b94d087/restore" \ -H "X-API-KEY: <your_api_key>" \ -H "Content-Type: application/json"
Response — 202 Accepted
{ "status": "restoring" }
Response — 202 Accepted (a database's backup)
{ "status": "restoring", "warning": "Restoring replaces ALL data in the database my-blog with this backup: changes made after it was taken are lost. It affects every application connected to it (my-blog): they keep running and see the restored data at once.", "connected_apps": [ { "application_uuid": "019be838-d261-7d9b-9499-71995a3a91c6", "application_name": "my-blog" } ], "database": { "uuid": "019c2a41-7d3e-7b52-a1c4-5e9f0b3d6a18", "name": "my-blog" } }

Download a Backup Artifact

GET /v1/applications/{uuid}/backups/{backup_uuid}/download

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

artifact string
database (the default) or content.

Errors

400
artifact must be 'database' or 'content'.
403
No Endpoints read, no Database data read for a database artifact, or no Endpoints write for a content artifact.
404
Application, backup, or the requested artifact not found.
409
The backup is not completed yet.
502
failed to read backup artifact: the storage couldn't be read; retry.
503
Backup storage is not configured.
Request — database dump
curl -L -o backup-db.sql.gz \ "https://api.ngris.com/v1/applications/019be838-d261-7d9b-9499-71995a3a91c6/backups/019c008d-14e8-7dc9-93c0-b24f6b94d087/download?artifact=database" \ -H "X-API-KEY: <your_api_key>"
Request — content volume
curl -L -o backup-content.tar.gz \ "https://api.ngris.com/v1/applications/019be838-d261-7d9b-9499-71995a3a91c6/backups/019c008d-14e8-7dc9-93c0-b24f6b94d087/download?artifact=content" \ -H "X-API-KEY: <your_api_key>"

Delete a Backup

DELETE /v1/applications/{uuid}/backups/{backup_uuid}

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

404
Application or backup not found.
Request
curl -X DELETE \ "https://api.ngris.com/v1/applications/019be838-d261-7d9b-9499-71995a3a91c6/backups/019c008d-14e8-7dc9-93c0-b24f6b94d087" \ -H "X-API-KEY: <your_api_key>"
Response — 204 No Content
(empty)

Get Backup Schedule

GET /v1/applications/{uuid}/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)

schedule object | null
null when no schedule is set; otherwise the schedule object.
schedule.enabled bool
Whether the schedule is active.
schedule.kind string
database, content, or full.
schedule.frequency string
daily or weekly.
schedule.hour_utc int
Hour of day in UTC, 0–23.
schedule.retain_count int
How many scheduled backups to keep (clamped to retention_max).
schedule.last_run_at / next_run_at datetime?
Last and next scheduled run; each omitted while unknown (no run yet, or the schedule is off).
schedule.application_uuid, account_uuid string (uuid)
The app and its account.
schedule.created_at / updated_at datetime
RFC 3339 UTC timestamps.
retention_max int
The plan cap on retained backups (backup_retention_max).
database object
Only when the app has a database: {uuid, name}.
database_schedule object | null
Only when the app has a database and the caller has Databases read: the database's schedule.
Request
curl "https://api.ngris.com/v1/applications/019be838-d261-7d9b-9499-71995a3a91c6/backup-schedule" \ -H "X-API-KEY: <your_api_key>"
Response — 200 OK (abridged)
{ "schedule": { "enabled": true, "kind": "full", "frequency": "daily", "hour_utc": 3, "retain_count": 7, "last_run_at": "2026-08-12T03:00:00Z", "next_run_at": "2026-08-13T03:00:00Z" } }

Update Backup Schedule

PUT /v1/applications/{uuid}/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)

enabled bool
Turn the schedule on or off.
kind string
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.
frequency string
daily or weekly.
hour_utc int
Hour of day in UTC to run, 0–23.
retain_count int
How many scheduled backups to keep. Clamped to the plan's retention cap.

Response (200 OK)

Returns the saved schedule under schedule.

Errors

403
Scheduled backups are not available on your plan. (only when enabled: true).
Request
curl -X PUT \ "https://api.ngris.com/v1/applications/019be838-d261-7d9b-9499-71995a3a91c6/backup-schedule" \ -H "X-API-KEY: <your_api_key>" \ -H "Content-Type: application/json" \ -d '{ "enabled": true, "kind": "full", "frequency": "daily", "hour_utc": 3, "retain_count": 7 }'
Response — 200 OK
{ "schedule": { "enabled": true, "kind": "full", "frequency": "daily", "hour_utc": 3, "retain_count": 7, "next_run_at": "2026-08-13T03:00:00Z" } }
Was this helpful?