Skip to main content
POST
Roll a session back to a checkpoint

Authorizations

Authorization
string
header
required

API key with the vk_ prefix. Create one from the dashboard.

Path Parameters

session_id
string
required

Session ID

Body

application/json
checkpoint_id
string
required

Response

The session, provisioning again until the runtime reports ready

object
string
required
id
string
required
environment_id
string
required
environment_version
integer<int32>
required
harness
string
required

The agent harness the session runs (claude-code), from its pinned environment version.

status
string
required

provisioning | ready | running | awaiting_approval | paused | ended | failed

awake_seconds
integer<int64>
required

Seconds the sandbox has been awake (what the session meter bills).

total_cost_usd
number<double>
required

Charged so far (USD).

rate_usd_per_hour
number<double>
required

Price per awake hour (USD) this session bills at, fixed at create from the environment's size.

egress_bytes
integer<int64>
required

Request + response bytes through the sandbox's egress interceptor (every mode; in unrestricted only the intercepted hosts).

egress_usd_per_gb
number<double>
required

Price per GB of egress_bytes (USD), fixed at create: non-zero only for an audited_open environment.

tool_calls
integer<int64>
required

Billable third-party tool executions (Composio): each app tool run through COMPOSIO_MULTI_EXECUTE_TOOL counts one; search, schema and connection tools are free.

tool_call_usd_per_1k
number<double>
required

Price per 1,000 tool_calls (USD), fixed at create: non-zero only when the environment has Composio tools. The workspace's monthly free allowance is applied when the calls are settled.

created_by
string
required
created_at
string<date-time>
required
updated_at
string<date-time>
required
title
string | null
budget_usd
number<double> | null
started_at
string<date-time> | null
last_active_at
string<date-time> | null
paused_at
string<date-time> | null
ended_at
string<date-time> | null
failure_code
string | null
error_message
string | null
parent_session_id
string | null

Set on a forked child: the session it was forked from.

forked_from_checkpoint_id
string | null

Set on a forked child: the parent's checkpoint it started from.

usage
null | object

Lifecycle timings, runs, model calls, tokens and model cost derived from the transcript. Only on GET /v1/sessions/{id}; absent on the list.

resources
null | object

The newest sandbox resource sample (CPU load, memory, disk) from the runtime's heartbeat; absent until the first one.