curl --silent --show-error --fail-with-body --request GET \
--url 'https://api.sandbox.stateset.app/api/v1/usage/current' \
--header "Authorization: ApiKey $STATESET_SANDBOX_API_KEY"
{
"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,
"estimated_cost_cents": 4900,
"breakdown": {
"cpu_cost_cents": 4900,
"memory_cost_cents": 4900,
"network_cost_cents": 4900,
"creations_cost_cents": 4900
}
}
Get current billing period usage
Current usage data
GET
/
api
/
v1
/
usage
/
current
curl --silent --show-error --fail-with-body --request GET \
--url 'https://api.sandbox.stateset.app/api/v1/usage/current' \
--header "Authorization: ApiKey $STATESET_SANDBOX_API_KEY"
{
"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,
"estimated_cost_cents": 4900,
"breakdown": {
"cpu_cost_cents": 4900,
"memory_cost_cents": 4900,
"network_cost_cents": 4900,
"creations_cost_cents": 4900
}
}
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.
Response
object
string (date-time)
required
string (date-time)
required
number
required
number
required
number
required
integer
required
number
required
Status codes
| Code | Meaning |
|---|---|
200 | Current usage 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/current' \
--header "Authorization: ApiKey $STATESET_SANDBOX_API_KEY"
{
"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,
"estimated_cost_cents": 4900,
"breakdown": {
"cpu_cost_cents": 4900,
"memory_cost_cents": 4900,
"network_cost_cents": 4900,
"creations_cost_cents": 4900
}
}
Last modified on September 21, 2026