v7

latestOpenAPI 3.0.0Apache 2.0raw.githubusercontent.com2026-01-26163065.1 KB

post/v1/snapshots/{id}/restore

Path parameters

idstring required

Snapshot ID or name

Snapshot ID or name

Request body

namestring required

Name for the restored sandbox

imagestring

Docker image override

wait_for_readyboolean

Wait for sandbox to be ready

Example request

{
  "name": "restored-project",
  "resources": {
    "cpus": 2,
    "memory": 1024
  },
  "wait_for_ready": true
}

Response

Sandbox restored from snapshot

idstring required

Sandbox ID

namestring required

Sandbox name

created_atstring required

Creation timestamp

cpunumber required

CPU count (API units, minimum 1)

memorynumber required

Memory size in MB

statusstring required

Sandbox status

storage_idstring

ID of the attached storage volume

storage_namestring

Name of the attached storage volume

Example response

{
  "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
  "name": "restored-project-1737158400",
  "created_at": "2024-01-17T20:00:00Z",
  "cpu": 2,
  "memory": 1024,
  "status": "creating",
  "storage_id": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
  "storage_name": "restored-project-1737158400-storage"
}