Skip to content
Raster
Esc
navigateopen⌘Jpreview

usage summary for the current period

GET/v1/billing/usage-summary
Authorization
AuthorizationBearer token · headerrequired
an organization api key. browser clients use the session cookie instead.
or
computer_sessionAPI key · cookierequired
first-party httponly browser session; never readable from javascript.
Responses
200OK
organization_idstringrequired
organization identifier
matches ^org_[0-9a-z]{20,32}$
plan_idPlanIdrequired
Allowed:freedeveloperprostartupenterprise
catalog_versionstringrequired
min length 1
period_startstring<date-time>required
period_endstring<date-time>required
statusstringrequired
Allowed:estimatefinal
currencystringrequired
min length 3 · max length 3
linesUsageSummaryLine[]required
Show properties
Array of UsageSummaryLine
meterUsageMeterrequired
Allowed:compute_small_secondscompute_standard_secondscompute_large_secondshot_storage_byte_secondscold_storage_byte_secondsegress_bytes
sizeMachineSize | anyrequired
Show properties
Any of:
MachineSize
string
any
any
quantitystringrequired
an exact non-negative integer as a decimal string
matches ^(0|[1-9][0-9]*)$
standard_secondsstring | anyrequired
Show properties
Any of:
string
string
any
any
included_quantitystringrequired
an exact non-negative integer as a decimal string
matches ^(0|[1-9][0-9]*)$
billable_quantitystringrequired
an exact non-negative integer as a decimal string
matches ^(0|[1-9][0-9]*)$
currencystringrequired
min length 3 · max length 3
amountintegerrequired
price in the minor unit of `currency`, e.g. cents
min 0 · max 9007199254740991
compute_creditsobjectrequired
Show properties
includedstring | anyrequired
Show properties
Any of:
string
string
any
any
consumedstringrequired
an exact non-negative integer as a decimal string
matches ^(0|[1-9][0-9]*)$
remainingstring | anyrequired
Show properties
Any of:
string
string
any
any
hot_storageobjectrequired
Show properties
includedstring | anyrequired
Show properties
Any of:
string
string
any
any
consumedstringrequired
an exact non-negative integer as a decimal string
matches ^(0|[1-9][0-9]*)$
remainingstring | anyrequired
Show properties
Any of:
string
string
any
any
egressobjectrequired
Show properties
includedstring | anyrequired
Show properties
Any of:
string
string
any
any
consumedstringrequired
an exact non-negative integer as a decimal string
matches ^(0|[1-9][0-9]*)$
remainingstring | anyrequired
Show properties
Any of:
string
string
any
any
limitsOrganizationLimit[]required
Show properties
Array of OrganizationLimit
keystringrequired
Allowed:running_machinesmachinestemplatesmembersconcurrent_sessionssnapshots_per_machine
currentintegerrequired
min 0 · max 9007199254740991
limitinteger | anyrequired
Show properties
Any of:
integer
integer
any
any
metered_totalintegerrequired
price in the minor unit of `currency`, e.g. cents
min 0 · max 9007199254740991
400invalid request
errorobjectrequired
Show properties
codeErrorCoderequired
Allowed:invalid_requestunauthenticatedpermission_deniednot_foundconflictprecondition_failedquota_exceededrate_limitedunsupported_operationinternal_errorcompute_unavailable
messagestringrequired
human-readable, not machine-parseable
request_idstringrequired
detailsFieldError[]
Show properties
Array of FieldError
fieldstringrequired
dotted path into the request body
messagestringrequired
quotaobject
Show properties
limitstringrequired
the entitlement that declined this request
currentintegerrequired
min 0 · max 9007199254740991
maximuminteger | anyrequired
Show properties
Any of:
integer
integer
any
any
plan_idstringrequired
upgrade_urlstring | anyrequired
Show properties
Any of:
string
string
any
any
401unauthenticated
errorobjectrequired
Show properties
codeErrorCoderequired
Allowed:invalid_requestunauthenticatedpermission_deniednot_foundconflictprecondition_failedquota_exceededrate_limitedunsupported_operationinternal_errorcompute_unavailable
messagestringrequired
human-readable, not machine-parseable
request_idstringrequired
detailsFieldError[]
Show properties
Array of FieldError
fieldstringrequired
dotted path into the request body
messagestringrequired
quotaobject
Show properties
limitstringrequired
the entitlement that declined this request
currentintegerrequired
min 0 · max 9007199254740991
maximuminteger | anyrequired
Show properties
Any of:
integer
integer
any
any
plan_idstringrequired
upgrade_urlstring | anyrequired
Show properties
Any of:
string
string
any
any
402quota exceeded
errorobjectrequired
Show properties
codeErrorCoderequired
Allowed:invalid_requestunauthenticatedpermission_deniednot_foundconflictprecondition_failedquota_exceededrate_limitedunsupported_operationinternal_errorcompute_unavailable
messagestringrequired
human-readable, not machine-parseable
request_idstringrequired
detailsFieldError[]
Show properties
Array of FieldError
fieldstringrequired
dotted path into the request body
messagestringrequired
quotaobject
Show properties
limitstringrequired
the entitlement that declined this request
currentintegerrequired
min 0 · max 9007199254740991
maximuminteger | anyrequired
Show properties
Any of:
integer
integer
any
any
plan_idstringrequired
upgrade_urlstring | anyrequired
Show properties
Any of:
string
string
any
any
403permission denied
errorobjectrequired
Show properties
codeErrorCoderequired
Allowed:invalid_requestunauthenticatedpermission_deniednot_foundconflictprecondition_failedquota_exceededrate_limitedunsupported_operationinternal_errorcompute_unavailable
messagestringrequired
human-readable, not machine-parseable
request_idstringrequired
detailsFieldError[]
Show properties
Array of FieldError
fieldstringrequired
dotted path into the request body
messagestringrequired
quotaobject
Show properties
limitstringrequired
the entitlement that declined this request
currentintegerrequired
min 0 · max 9007199254740991
maximuminteger | anyrequired
Show properties
Any of:
integer
integer
any
any
plan_idstringrequired
upgrade_urlstring | anyrequired
Show properties
Any of:
string
string
any
any
404not found
errorobjectrequired
Show properties
codeErrorCoderequired
Allowed:invalid_requestunauthenticatedpermission_deniednot_foundconflictprecondition_failedquota_exceededrate_limitedunsupported_operationinternal_errorcompute_unavailable
messagestringrequired
human-readable, not machine-parseable
request_idstringrequired
detailsFieldError[]
Show properties
Array of FieldError
fieldstringrequired
dotted path into the request body
messagestringrequired
quotaobject
Show properties
limitstringrequired
the entitlement that declined this request
currentintegerrequired
min 0 · max 9007199254740991
maximuminteger | anyrequired
Show properties
Any of:
integer
integer
any
any
plan_idstringrequired
upgrade_urlstring | anyrequired
Show properties
Any of:
string
string
any
any
409conflict with current state
errorobjectrequired
Show properties
codeErrorCoderequired
Allowed:invalid_requestunauthenticatedpermission_deniednot_foundconflictprecondition_failedquota_exceededrate_limitedunsupported_operationinternal_errorcompute_unavailable
messagestringrequired
human-readable, not machine-parseable
request_idstringrequired
detailsFieldError[]
Show properties
Array of FieldError
fieldstringrequired
dotted path into the request body
messagestringrequired
quotaobject
Show properties
limitstringrequired
the entitlement that declined this request
currentintegerrequired
min 0 · max 9007199254740991
maximuminteger | anyrequired
Show properties
Any of:
integer
integer
any
any
plan_idstringrequired
upgrade_urlstring | anyrequired
Show properties
Any of:
string
string
any
any
412precondition failed
errorobjectrequired
Show properties
codeErrorCoderequired
Allowed:invalid_requestunauthenticatedpermission_deniednot_foundconflictprecondition_failedquota_exceededrate_limitedunsupported_operationinternal_errorcompute_unavailable
messagestringrequired
human-readable, not machine-parseable
request_idstringrequired
detailsFieldError[]
Show properties
Array of FieldError
fieldstringrequired
dotted path into the request body
messagestringrequired
quotaobject
Show properties
limitstringrequired
the entitlement that declined this request
currentintegerrequired
min 0 · max 9007199254740991
maximuminteger | anyrequired
Show properties
Any of:
integer
integer
any
any
plan_idstringrequired
upgrade_urlstring | anyrequired
Show properties
Any of:
string
string
any
any
429rate limited
errorobjectrequired
Show properties
codeErrorCoderequired
Allowed:invalid_requestunauthenticatedpermission_deniednot_foundconflictprecondition_failedquota_exceededrate_limitedunsupported_operationinternal_errorcompute_unavailable
messagestringrequired
human-readable, not machine-parseable
request_idstringrequired
detailsFieldError[]
Show properties
Array of FieldError
fieldstringrequired
dotted path into the request body
messagestringrequired
quotaobject
Show properties
limitstringrequired
the entitlement that declined this request
currentintegerrequired
min 0 · max 9007199254740991
maximuminteger | anyrequired
Show properties
Any of:
integer
integer
any
any
plan_idstringrequired
upgrade_urlstring | anyrequired
Show properties
Any of:
string
string
any
any
500internal error
errorobjectrequired
Show properties
codeErrorCoderequired
Allowed:invalid_requestunauthenticatedpermission_deniednot_foundconflictprecondition_failedquota_exceededrate_limitedunsupported_operationinternal_errorcompute_unavailable
messagestringrequired
human-readable, not machine-parseable
request_idstringrequired
detailsFieldError[]
Show properties
Array of FieldError
fieldstringrequired
dotted path into the request body
messagestringrequired
quotaobject
Show properties
limitstringrequired
the entitlement that declined this request
currentintegerrequired
min 0 · max 9007199254740991
maximuminteger | anyrequired
Show properties
Any of:
integer
integer
any
any
plan_idstringrequired
upgrade_urlstring | anyrequired
Show properties
Any of:
string
string
any
any
501unsupported operation
errorobjectrequired
Show properties
codeErrorCoderequired
Allowed:invalid_requestunauthenticatedpermission_deniednot_foundconflictprecondition_failedquota_exceededrate_limitedunsupported_operationinternal_errorcompute_unavailable
messagestringrequired
human-readable, not machine-parseable
request_idstringrequired
detailsFieldError[]
Show properties
Array of FieldError
fieldstringrequired
dotted path into the request body
messagestringrequired
quotaobject
Show properties
limitstringrequired
the entitlement that declined this request
currentintegerrequired
min 0 · max 9007199254740991
maximuminteger | anyrequired
Show properties
Any of:
integer
integer
any
any
plan_idstringrequired
upgrade_urlstring | anyrequired
Show properties
Any of:
string
string
any
any
503compute unavailable
errorobjectrequired
Show properties
codeErrorCoderequired
Allowed:invalid_requestunauthenticatedpermission_deniednot_foundconflictprecondition_failedquota_exceededrate_limitedunsupported_operationinternal_errorcompute_unavailable
messagestringrequired
human-readable, not machine-parseable
request_idstringrequired
detailsFieldError[]
Show properties
Array of FieldError
fieldstringrequired
dotted path into the request body
messagestringrequired
quotaobject
Show properties
limitstringrequired
the entitlement that declined this request
currentintegerrequired
min 0 · max 9007199254740991
maximuminteger | anyrequired
Show properties
Any of:
integer
integer
any
any
plan_idstringrequired
upgrade_urlstring | anyrequired
Show properties
Any of:
string
string
any
any
Try it
Server
Authorization
Request
curl -X GET "https://api.raster.sh/v1/v1/billing/usage-summary" \
  -H "Authorization: Bearer YOUR_TOKEN"
Response
{
  "organization_id": "org_01h8xk2q4v9m3n7p5r0t",
  "plan_id": "free",
  "catalog_version": "string",
  "period_start": "2026-08-19T12:00:00Z",
  "period_end": "2026-08-19T12:00:00Z",
  "status": "estimate",
  "currency": "USD",
  "lines": [
    {
      "meter": "compute_small_seconds",
      "size": "small",
      "quantity": "27869184000000000",
      "standard_seconds": "27869184000000000",
      "included_quantity": "27869184000000000",
      "billable_quantity": "27869184000000000",
      "currency": "USD",
      "amount": 9007199254740991
    }
  ],
  "compute_credits": {
    "included": "27869184000000000",
    "consumed": "27869184000000000",
    "remaining": "27869184000000000"
  },
  "hot_storage": {
    "included": "27869184000000000",
    "consumed": "27869184000000000",
    "remaining": "27869184000000000"
  },
  "egress": {
    "included": "27869184000000000",
    "consumed": "27869184000000000",
    "remaining": "27869184000000000"
  },
  "limits": [
    {
      "key": "running_machines",
      "current": 9007199254740991,
      "limit": 9007199254740991
    }
  ],
  "metered_total": 9007199254740991
}