Create a session snapshot
Capture a Hyperbrowser memory snapshot of a running VM-backed browser session for reuse via startFromSnapshot. Requires scope browser.sessions.snapshots.create and team snapshot access. See Browser Session Snapshots.
POST
/
api
/
session
/
{id}
/
snapshot
cURL
curl -X POST "https://api.hyperbrowser.ai/api/session/<id>/snapshot" \
-H "x-api-key: $HYPERBROWSER_API_KEY"const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch('https://api.hyperbrowser.ai/api/session/{id}/snapshot', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));from hyperbrowser import Hyperbrowser
client = Hyperbrowser(api_key="your-api-key")
snapshot = client.sessions.create_snapshot("session-id"){
"snapshotName": "warm-env-v1",
"snapshotId": "snap_01JXYZ1234567890ABCDEF",
"namespace": "<string>",
"status": "<string>",
"uploaded": true,
"ready": true,
"imageName": "node",
"imageId": "<string>",
"imageNamespace": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}Body
application/json
The body is of type object.
Response
Snapshot created
Was this page helpful?
cURL
curl -X POST "https://api.hyperbrowser.ai/api/session/<id>/snapshot" \
-H "x-api-key: $HYPERBROWSER_API_KEY"const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch('https://api.hyperbrowser.ai/api/session/{id}/snapshot', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));from hyperbrowser import Hyperbrowser
client = Hyperbrowser(api_key="your-api-key")
snapshot = client.sessions.create_snapshot("session-id"){
"snapshotName": "warm-env-v1",
"snapshotId": "snap_01JXYZ1234567890ABCDEF",
"namespace": "<string>",
"status": "<string>",
"uploaded": true,
"ready": true,
"imageName": "node",
"imageId": "<string>",
"imageNamespace": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}