Skip to content

List snapshots

GET/v1/snapshots

Returns every VM snapshot in the workspace, newest first. This includes detached snapshots (detached: true) whose source VM has been deleted.

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 snapshots.

successbooleanRequired

true when the request succeeded.

messagestringRequired

Human-readable status message.

dataarray of objects
Show item attributes
uidstringRequired

Unique identifier of the snapshot.

vm_uidstringRequired

UID of the VM the snapshot was taken from. Kept after that VM is deleted.

source_vm_namestringRequired

Name of the source VM.

detachedbooleanRequired

true when the source VM has been deleted. The snapshot can still be used to create a new VM.

namestringRequired

Name of the snapshot.

slugstringRequired

URL-safe form of the name.

statusstringRequired

Lifecycle state. Only available snapshots can be restored or used to create a VM.

One ofcreatingavailablerestoringdeletingfailed

consumed_bytesintegerRequired

Storage the snapshot actually uses, in bytes. Billing is based on this. 0 until the snapshot is ready.

created_atstring (date-time)Required

When the snapshot was requested.

updated_atstring (date-time)Required

When the snapshot last changed.

Errors

StatusMeaning
400The request was malformed or failed validation.
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.