Maintenance May 12, 8–9 PM PDT (May 13, 03:00–04:00 UTC). ~1 min disruption to sandbox management may occur. Already running sandboxes will not be affected. Questions? Contact us
Maintenance May 12, 8–9 PM PDT (May 13, 03:00–04:00 UTC). ~1 min disruption to sandbox management may occur. Already running sandboxes will not be affected. Questions? Contact us
Create a persistent snapshot from the sandbox’s current state. Snapshots can be used to create new sandboxes and persist beyond the original sandbox’s lifetime.
curl --request POST \
--url https://api.e2b.app/sandboxes/{sandboxID}/snapshots \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"name": "<string>"
}
'{
"snapshotID": "<string>",
"names": [
"<string>"
]
}Documentation Index
Fetch the complete documentation index at: https://e2b-banner-hover-tooltip.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Optional name for the snapshot template. If a snapshot template with this name already exists, a new build will be assigned to the existing template instead of creating a new one.
Snapshot created successfully
Identifier of the snapshot template including the tag. Uses namespace/alias when a name was provided (e.g. team-slug/my-snapshot:default), otherwise falls back to the raw template ID (e.g. abc123:default).
Full names of the snapshot template including team namespace and tag (e.g. team-slug/my-snapshot:v2)
Was this page helpful?
curl --request POST \
--url https://api.e2b.app/sandboxes/{sandboxID}/snapshots \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"name": "<string>"
}
'{
"snapshotID": "<string>",
"names": [
"<string>"
]
}