curl --silent --show-error --fail-with-body --request GET \
--url 'https://api.sandbox.stateset.app/api/v1/usage/history' \
--header "Authorization: ApiKey $STATESET_SANDBOX_API_KEY"
{
"granularity": "hourly",
"start_date": "2026-08-31T14:22:05Z",
"end_date": "2026-08-31T14:22:05Z",
"data": [
{
"period_start": "2026-08-31T14:22:05Z",
"period_end": "2026-08-31T14:22:05Z",
"cpu_hours": 1.5,
"memory_gb_hours": 1.5,
"network_gb": 1.5,
"sandbox_creations": 1,
"sandbox_count": 1
}
]
}
Get usage history
Usage history data
GET
/
api
/
v1
/
usage
/
history
curl --silent --show-error --fail-with-body --request GET \
--url 'https://api.sandbox.stateset.app/api/v1/usage/history' \
--header "Authorization: ApiKey $STATESET_SANDBOX_API_KEY"
{
"granularity": "hourly",
"start_date": "2026-08-31T14:22:05Z",
"end_date": "2026-08-31T14:22:05Z",
"data": [
{
"period_start": "2026-08-31T14:22:05Z",
"period_end": "2026-08-31T14:22:05Z",
"cpu_hours": 1.5,
"memory_gb_hours": 1.5,
"network_gb": 1.5,
"sandbox_creations": 1,
"sandbox_count": 1
}
]
}
Confirm your deployment before running this request. This page describes an API contract;
a published reference does not establish hosted availability. Check the dated
host report and obtain your deployment URL and credentials.
Replace the example host if your provisioned service uses a different URL.
Query parameters
string (date)
Start date
string (date)
End date
string
hourly, daily, or monthly
Response
object
string
required
Allowed values:
'hourly', 'daily', 'monthly'.string (date-time)
required
string (date-time)
required
object[]
required
Status codes
| Code | Meaning |
|---|---|
200 | Usage history data |
Using this contract
Read the source OpenAPI document for declared schemas and alternatives. This page also includes documented corrections from the spec overlays. Example IDs and values are illustrative; replace them with records from your workspace.curl --silent --show-error --fail-with-body --request GET \
--url 'https://api.sandbox.stateset.app/api/v1/usage/history' \
--header "Authorization: ApiKey $STATESET_SANDBOX_API_KEY"
{
"granularity": "hourly",
"start_date": "2026-08-31T14:22:05Z",
"end_date": "2026-08-31T14:22:05Z",
"data": [
{
"period_start": "2026-08-31T14:22:05Z",
"period_end": "2026-08-31T14:22:05Z",
"cpu_hours": 1.5,
"memory_gb_hours": 1.5,
"network_gb": 1.5,
"sandbox_creations": 1,
"sandbox_count": 1
}
]
}
Last modified on September 21, 2026