Resume Agent Sandbox
POST/v1/sandbox_vms/{sandbox_vm_id}/resume
Resume a paused or powered-off Agent Sandbox, restarting its sandboxes. A resume sent while another change runs waits for it, and resuming a running Agent Sandbox changes nothing. Pausing doesn’t free quota and resuming doesn’t use any: a paused Agent Sandbox still counts toward the sandbox quota’s vms, and Agent Sandboxes don’t count toward its vcpu or memory_gb. A billing block returns 402.
Resume Agent Sandbox
curl https://api.nirvanalabs.io/v1/sandbox_vms/$SANDBOX_VM_ID/resume \
-X POST \
-H "Authorization: Bearer $NIRVANA_LABS_API_KEY"{
"id": "123e4567-e89b-12d3-a456-426614174000",
"created_at": "2025-01-01T00:00:00Z",
"details": {
"changes": {
"foo": {
"from": "string",
"to": "string"
}
}
},
"kind": "vm",
"project_id": "123e4567-e89b-12d3-a456-426614174000",
"resource_id": "123e4567-e89b-12d3-a456-426614174000",
"status": "pending",
"type": "create",
"updated_at": "2025-01-01T00:00:00Z"
}Returns Examples
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"created_at": "2025-01-01T00:00:00Z",
"details": {
"changes": {
"foo": {
"from": "string",
"to": "string"
}
}
},
"kind": "vm",
"project_id": "123e4567-e89b-12d3-a456-426614174000",
"resource_id": "123e4567-e89b-12d3-a456-426614174000",
"status": "pending",
"type": "create",
"updated_at": "2025-01-01T00:00:00Z"
}