Documentation Index
Fetch the complete documentation index at: https://docs.squarecloud.app/llms.txt
Use this file to discover all available pages before exploring further.
Snapshots replace the v3
backup / backups API. app.backup and app.backups are still exported in v4 but they print a deprecation warning and proxy to app.snapshots. Update your code to use the new name.app.snapshots exposes the SnapshotsModule.
Listing snapshots
app.snapshots.list() returns an array of Snapshot instances.
Creating a new snapshot
app.snapshots.create() triggers a fresh snapshot and returns the signed URL and key.
Download in one step
app.snapshots.download() creates a snapshot and downloads it as a Buffer.
Restoring from a snapshot
app.snapshots.restore({ snapshotId, versionId }) rolls the application back to a previous snapshot version.
| Field | Type | Description |
|---|---|---|
snapshotId | string | Snapshot identifier (UUID v4) |
versionId | string | Version identifier returned by list() |
Listing snapshots account-wide
api.user.snapshots(scope) returns every snapshot you own across all your applications or databases.
api.user.snapshots() requires an active paid subscription.
