Returns the complete sandbox object including state, configuration, resource
allocation, and connection details.
Path Parameters
The sandbox identifier. Format: sbx-<8 chars>.Example: sbx-a1b2c3d4
Response
Unique sandbox identifier.
Template the sandbox was created from.
Human-readable name derived from the template.
Current lifecycle state: creating, running, paused, or killed.
Auto-kill timeout in seconds. 0 means no timeout is set.
Key-value metadata attached at creation time.
Environment variables injected into the sandbox.
Network access configuration (if specified at creation).
CPU and memory allocation (vcpus, memory_mb).
Bearer token for envd daemon access.
Bearer token for the security/traffic proxy.
Internal IP address of the Firecracker VM.
Port on which envd listens inside the VM.
UTC timestamp of sandbox creation.
UTC timestamp when the sandbox will be or was killed. null if no timeout.
Example
curl https://api.declaw.ai/sandboxes/sbx-a1b2c3d4 \
-H "X-API-Key: YOUR_API_KEY"
{
"sandbox_id": "sbx-a1b2c3d4",
"template_id": "tpl-base",
"name": "base",
"state": "running",
"timeout": 300,
"metadata": { "project": "my-agent" },
"resources": { "vcpus": 1, "memory_mb": 512 },
"envd_access_token": "envd-ab12cd34",
"sandbox_domain": "declaw.dev",
"traffic_access_token": "traffic-ef56gh78",
"guest_ip": "172.16.0.5",
"envd_port": 49983,
"started_at": "2024-01-15T10:30:00Z",
"end_at": "2024-01-15T10:35:00Z"
}
Error Responses
| Status | Cause |
|---|
401 | Missing or invalid API key |
404 | Sandbox not found |