Box
Create linux box
Provisions a new Linux box that you can operate through the GBOX SDK. Use this endpoint when you want to create a fresh Linux environment for testing, automation, or agent execution.
post/boxes/linux
Request body
Example request
{
"wait": true,
"timeout": "30s",
"config": {
"labels": {
"project": "web-automation",
"environment": "testing",
"owner": "john-doe",
"purpose": "e2e-testing"
},
"envs": {
"DEBUG": "true",
"API_URL": "https://api.example.com"
},
"keepAlive": "0ms",
"deviceType": "container",
"expiresIn": "60m"
}
}Response
Example response
{
"id": "c9bdc193-b54b-4ddb-a035-5ac0c598d32d",
"status": "running",
"createdAt": "2024-01-15T10:30:00.000Z",
"updatedAt": "2024-01-15T10:35:00.000Z",
"expiresAt": "2024-01-15T10:40:00.000Z",
"reason": "Box terminated by user",
"type": "linux",
"config": {
"os": {
"version": "ubuntu-20.04"
},
"workingDir": "/home/user",
"labels": {
"project": "web-scraper",
"environment": "production",
"team": "backend",
"version": "v1.2.0"
},
"envs": {
"MY_ENV_KEY": "env value"
},
"cpu": 2,
"memory": 1024,
"storage": 30,
"publicIp": "8.8.8.8",
"deviceType": "container"
}
}