/v1/database-snapshots/{snapshot_uid}Returns one database snapshot in the workspace, including snapshots of deleted databases.
Authentication
Send your API key as Authorization: Bearer <token>. The request is scoped to the workspace in X-Workspace-Slug.
Path parameters
snapshot_uidstringRequiredThe database snapshot's uid.
Headers
X-Workspace-SlugstringRequiredSlug of the workspace the request acts on. You can also pass it as the workspace_slug query parameter.
Response
The snapshot.
successbooleanRequiredtrue when the request succeeded.
messagestringRequiredHuman-readable status message.
dataobjectShow attributesHide attributes
uidstringRequiredSnapshot UID.
database_uidstringRequiredUID of the database the snapshot was taken from. Still set after that database is deleted.
source_database_namestringRequiredName of the source database.
source_enginestringEngine of the source database. Omitted when unknown.
One ofpostgresmysqlredis
source_versionstringEngine version of the source database. Omitted when unknown.
detachedbooleanRequiredtrue 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.
namestringRequiredSnapshot name.
slugstringRequiredURL-safe version of the name.
statusstringRequiredSnapshot state. Only available snapshots can be restored or used to create a database.
One ofcreatingavailablerestoringdeletingfailed
consumed_bytesintegerRequiredStorage used by the snapshot, in bytes. 0 until reported.
created_atstring (date-time)RequiredWhen the snapshot was requested.
updated_atstring (date-time)RequiredWhen the snapshot last changed.
Errors
| Status | Meaning |
|---|---|
400 | The request was malformed or failed validation. |
401 | The API key is missing, invalid, expired or revoked. |
403 | You cannot access the workspace, your role does not allow this action, or the account is suspended. |
404 | The resource does not exist or you cannot access it. |
Errors use the standard error format.