Skip to main content
Use this endpoint to capture a running capsule as a reusable snapshot template. The server pauses the capsule, copies its full snapshot (VM state, memory, and root filesystem) to the images directory, then destroys the source capsule. The resulting template can be passed as the template parameter when creating new capsules.
This operation destroys the source capsule after snapshotting it. Save any data you need before calling this endpoint — the capsule cannot be recovered afterward.

Endpoint

Authentication

string
required
Your team’s API key. Pass the full wrn_... key value.

Query parameters

string
Set to "true" to overwrite an existing snapshot template with the same name. Without this parameter, the request returns 409 if the name is already in use.

Request body

string
required
The ID of the running capsule to snapshot (e.g., "cl-abc123"). The capsule must be in the running state.
string
A name for the snapshot template. Used as the template value when creating capsules from this snapshot. If omitted, a name is auto-generated.

Example request

The request body field is named sandbox_id for compatibility. Pass the capsule ID (prefixed cl-) as its value.

Python SDK

Error responses