curl --silent --show-error --fail-with-body --request GET \
--url 'https://api.computer.stateset.app/api/v1/usage' \
--header "X-API-Key: $STATESET_COMPUTER_USE_API_KEY"
{
"total_jobs": 1,
"total_tokens": 1,
"total_cost_usd": 1.5,
"period_tasks_used": 1,
"task_quota": 1,
"period_cost_usd": 1.5,
"by_status": {},
"billing_period_start": "string",
"billing_period_end": "string"
}
Get Usage V1
Tenant-scoped usage rollup. Returns lifetime totals (tokens, cost, job count), the by-status job breakdown, and current billing-period spend + quota state…
GET
/
api
/
v1
/
usage
curl --silent --show-error --fail-with-body --request GET \
--url 'https://api.computer.stateset.app/api/v1/usage' \
--header "X-API-Key: $STATESET_COMPUTER_USE_API_KEY"
{
"total_jobs": 1,
"total_tokens": 1,
"total_cost_usd": 1.5,
"period_tasks_used": 1,
"task_quota": 1,
"period_cost_usd": 1.5,
"by_status": {},
"billing_period_start": "string",
"billing_period_end": "string"
}
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
app__api__routes__v1__trigger__UsageResponse
integer
required
integer
required
number
required
integer
required
integer
required
number
required
object
required
Additional keys map to values of type
integer.string,null
required
string,null
required
Status codes
| Code | Meaning |
|---|---|
200 | Successful Response |
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.computer.stateset.app/api/v1/usage' \
--header "X-API-Key: $STATESET_COMPUTER_USE_API_KEY"
{
"total_jobs": 1,
"total_tokens": 1,
"total_cost_usd": 1.5,
"period_tasks_used": 1,
"task_quota": 1,
"period_cost_usd": 1.5,
"by_status": {},
"billing_period_start": "string",
"billing_period_end": "string"
}
Last modified on September 21, 2026