Sessions
Resume a paused session
Restores the sandbox from its pause snapshot; the session is provisioning until the runtime reports ready. If the pause denied a pending approval, the agent first finishes the interrupted turn: the denied tool call comes back as an error tool.result, the run completes (run.completed), and then the session is ready.
POST
/
v1
/
sessions
/
{session_id}
/
resume
Resume a paused session
curl --request POST \
--url https://api.veri.studio/v1/sessions/{session_id}/resume \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.veri.studio/v1/sessions/{session_id}/resume"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.veri.studio/v1/sessions/{session_id}/resume', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"object": "<string>",
"id": "<string>",
"environment_id": "<string>",
"environment_version": 123,
"harness": "<string>",
"status": "<string>",
"awake_seconds": 123,
"total_cost_usd": 123,
"rate_usd_per_hour": 123,
"egress_bytes": 123,
"egress_usd_per_gb": 123,
"tool_calls": 123,
"tool_call_usd_per_1k": 123,
"created_by": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"title": "<string>",
"budget_usd": 123,
"started_at": "2023-11-07T05:31:56Z",
"last_active_at": "2023-11-07T05:31:56Z",
"paused_at": "2023-11-07T05:31:56Z",
"ended_at": "2023-11-07T05:31:56Z",
"failure_code": "<string>",
"error_message": "<string>",
"parent_session_id": "<string>",
"forked_from_checkpoint_id": "<string>",
"usage": {
"runs": 123,
"run_duration_ms": {
"p50": 123,
"max": 123
},
"interrupts": 123,
"pauses": 123,
"llm_calls": 123,
"tokens": {
"input": 123,
"output": 123,
"cache_read": 123,
"cache_creation": 123
},
"permission_denials": 123,
"approvals": {
"requested": 123,
"approved": 123,
"denied": 123,
"wait_ms_total": 123
},
"tool_calls": 123,
"boot_ms": 123,
"restore_ms": 123,
"snapshot_ms": 123,
"model_cost_usd": 123,
"harness_estimated_cost_usd": 123
},
"resources": {
"sampled_at": "2023-11-07T05:31:56Z",
"load1": 123,
"mem_bytes": 123,
"mem_limit_bytes": 123,
"disk_bytes": 123
}
}Authorizations
Response
The session, provisioning again until the runtime reports ready
Resume a paused session
curl --request POST \
--url https://api.veri.studio/v1/sessions/{session_id}/resume \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.veri.studio/v1/sessions/{session_id}/resume"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.veri.studio/v1/sessions/{session_id}/resume', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"object": "<string>",
"id": "<string>",
"environment_id": "<string>",
"environment_version": 123,
"harness": "<string>",
"status": "<string>",
"awake_seconds": 123,
"total_cost_usd": 123,
"rate_usd_per_hour": 123,
"egress_bytes": 123,
"egress_usd_per_gb": 123,
"tool_calls": 123,
"tool_call_usd_per_1k": 123,
"created_by": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"title": "<string>",
"budget_usd": 123,
"started_at": "2023-11-07T05:31:56Z",
"last_active_at": "2023-11-07T05:31:56Z",
"paused_at": "2023-11-07T05:31:56Z",
"ended_at": "2023-11-07T05:31:56Z",
"failure_code": "<string>",
"error_message": "<string>",
"parent_session_id": "<string>",
"forked_from_checkpoint_id": "<string>",
"usage": {
"runs": 123,
"run_duration_ms": {
"p50": 123,
"max": 123
},
"interrupts": 123,
"pauses": 123,
"llm_calls": 123,
"tokens": {
"input": 123,
"output": 123,
"cache_read": 123,
"cache_creation": 123
},
"permission_denials": 123,
"approvals": {
"requested": 123,
"approved": 123,
"denied": 123,
"wait_ms_total": 123
},
"tool_calls": 123,
"boot_ms": 123,
"restore_ms": 123,
"snapshot_ms": 123,
"model_cost_usd": 123,
"harness_estimated_cost_usd": 123
},
"resources": {
"sampled_at": "2023-11-07T05:31:56Z",
"load1": 123,
"mem_bytes": 123,
"mem_limit_bytes": 123,
"disk_bytes": 123
}
}
