Skip to content

List database snapshots

GET/v1/database-snapshots

Returns every database snapshot in the workspace, newest first, including snapshots whose database has been deleted (detached: true).

Authentication

Send your API key as Authorization: Bearer <token>. The request is scoped to the workspace in X-Workspace-Slug.

Headers

X-Workspace-SlugstringRequired

Slug of the workspace the request acts on. You can also pass it as the workspace_slug query parameter.

Response

200

The workspace's database snapshots.

successbooleanRequired

true when the request succeeded.

messagestringRequired

Human-readable status message.

dataarray of objects
Show item attributes
uidstringRequired

Snapshot UID.

database_uidstringRequired

UID of the database the snapshot was taken from. Still set after that database is deleted.

source_database_namestringRequired

Name of the source database.

source_enginestring

Engine of the source database. Omitted when unknown.

One ofpostgresmysqlredis

source_versionstring

Engine version of the source database. Omitted when unknown.

detachedbooleanRequired

true when the source database has been deleted. Detached snapshots can still be used to create a database, and can be deleted with Delete a database snapshot.

namestringRequired

Snapshot name.

slugstringRequired

URL-safe version of the name.

statusstringRequired

Snapshot state. Only available snapshots can be restored or used to create a database.

One ofcreatingavailablerestoringdeletingfailed

consumed_bytesintegerRequired

Storage used by the snapshot, in bytes. 0 until reported.

created_atstring (date-time)Required

When the snapshot was requested.

updated_atstring (date-time)Required

When the snapshot last changed.

Errors

StatusMeaning
401The API key is missing, invalid, expired or revoked.
403You cannot access the workspace, your role does not allow this action, or the account is suspended.

Errors use the standard error format.