Skip to main content
Start a new runtime from a snapshot name or ID. The new runtime has its own ID. Leave template unset.
You can start many runtimes from the same snapshot. Each one is independent: stopping one, or changing its files or timeout, leaves the others and the original runtime alone. A cold snapshot boots fresh with the saved files and no running processes. A hot snapshot continues from saved memory. Hot restore is typically ready in tens of milliseconds. Cold restore waits until the runtime has booted (up to about 90 seconds).

Parameters

Use the same create body as Create a runtime, with these rules: Timeout, env vars, secrets, and network policies work the same as a template create.
  • The snapshot must be active. Inactive snapshots cannot start new runtimes.
  • The new runtime starts in the snapshot’s region. If that region has no capacity, the request fails.
  • Deleting the snapshot later does not stop runtimes that already started from it.

Endpoint

POST /v1/agents/runtime