The sandbox's CPU, memory and disk over time
GET
/sandboxes/{id}/metrics
const url = 'https://api.global.stillbox.example/v1/sandboxes/ws-7k2m9q4x8w3z5r6t/metrics?range=1h';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.global.stillbox.example/v1/sandboxes/ws-7k2m9q4x8w3z5r6t/metrics?range=1h' \ --header 'Authorization: Bearer <token>'From the usage the server measures every minute (kept 7 days) and every hour (for 30 days). CPU and memory are averages over the time the sandbox was awake in each point; asleep, a point has awake_seconds 0.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Query Parameters
Section titled “Query Parameters”range
string
Responses
Section titled “Responses”Points, oldest first
Media typeapplication/json
object
range
required
string
step_seconds
required
integer
vcpus
required
number format: double
memory_limit_bytes
required
integer format: int64
disk_limit_bytes
required
integer format: int64
points
required
Array<object>
object
t
required
The start of the point’s interval
string format: date-time
awake_seconds
required
number format: double
cpu_percent
required
Average CPU use while awake, as a share of the sandbox’s vCPUs (0–100)
number format: double
memory_bytes
required
Average memory used while awake
integer format: int64
disk_bytes
required
Disk used at the end of the interval
integer format: int64
Example generated
{ "range": "example", "step_seconds": 1, "vcpus": 1, "memory_limit_bytes": 1, "disk_limit_bytes": 1, "points": [ { "t": "2026-04-15T12:00:00Z", "awake_seconds": 1, "cpu_percent": 1, "memory_bytes": 1, "disk_bytes": 1 } ]}The request is invalid
Media typeapplication/json
object
code
required
string
message
required
string
Example
{ "code": "not_found"}The API key is missing or invalid
Media typeapplication/json
object
code
required
string
message
required
string
Example
{ "code": "not_found"}No such sandbox in your organization (or no such file)
Media typeapplication/json
object
code
required
string
message
required
string
Example
{ "code": "not_found"}