Box
Create android box
Provisions a new Android box that you can operate through the GBOX SDK. Use this endpoint when you want to create a fresh Android environment for testing, automation, or agent execution.
post/boxes/android
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": "virtual",
"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": "android",
"config": {
"os": {
"version": "12"
},
"deviceType": "virtual",
"workingDir": "/data/local/tmp",
"labels": {
"app": "mobile-testing",
"environment": "staging",
"team": "qa",
"device": "pixel-6"
},
"envs": {
"ANDROID_HOME": "/opt/android-sdk",
"DISPLAY": ":1"
},
"cpu": 2,
"memory": 2048,
"storage": 20
}
}