Skip to main content
GET
List Snapshots
Authorization
string
required
The API key for your account. You can find this in your account settings.
Lists every snapshot stored for a database, most recent first, with size and last-modified date for each. Use it to build a restore picker in a dashboard, or to poll after a Create Snapshot call returned 202 SNAPSHOT_PROCESSING and confirm the file has landed. The key field in each item is a signed query string, append it to the download URL described in the note below to fetch that snapshot directly. Responses are cached for 30 minutes per user and database, so a snapshot that just finished generating may take a short while to show up here. To restore one of these snapshots, see Restore Snapshot.

Parameters

database_id
string
required
The ID of the database.

Response

status
string
Indicates whether the call was successful.. success if successful, error if not.
response
array
The contents of the response.
The format of the URL to download the desired snapshot is: https://snapshots.squarecloud.app/databases/{accountID}/{name}.zip?{key}

Common errors