Get the state of an application snapshot restore
Follow a snapshot restore with GET /v2/apps/:app_id/snapshots/restore: whether it is queued, running, finished or failed, the step it is on and the error code.
GET
Get the state of an application snapshot restore
The API key for your account. You can find this in your account settings.
snapshots:read scope.
Returns the progress and the outcome of the application’s last snapshot restore. Use it when the restore answered 202 SNAPSHOT_RESTORE_PROCESSING, which means it is still running in the background: poll this route until state is success or error.
The outcome stays available for one hour after the restore ends. After that, or when the application was never restored, state is none. On workspace-shared applications the caller needs the admin role.
Parameters
The ID of the application. You can find this in the URL of your application’s dashboard.
Response
Steps
Every restore starts atqueued, then inspect, and ends at done. In between, an application goes through these steps, in this order:
A restore that was cut short ends at the step
interrupted, with the code RESTORE_INTERRUPTED. Treat a step you don’t know as “still running”: new ones can be added.
Failure codes
The codesstate: "error" carries are the same ones the restore route answers with when it fails within its response time:
Polling example
Common errors
Related
- Restore Snapshot: starts the restore this route follows.
- List Snapshots: the snapshots that can be restored.

