List database snapshots
List a database’s snapshots, newest first, with GET /v2/databases//snapshots: size, date, download URL and the IDs to restore each one.
GET
List database snapshots
string
required
The API key for your account. You can find this in your account settings.
snapshots:read scope.
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.
Each item carries a signed download url, valid for 1 hour, and a version_id to pass as versionId when restoring. 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
string
required
The ID of the database.
Response
string
Indicates whether the call was successful:
success if it was, error if not.array
The contents of the response.
Download a snapshot from its
url. The link stays valid for 1 hour. A cached listing can return a link with less time left, so list again for a fresh one.Common errors
Related
- CLI:
squarecloud db snapshot list - SDKs:
api.databases.snapshots.list()(JavaScript),client.databases.snapshots.list()(Python),c.Databases.Snapshots.List()(Go)

