v1
compute-units

Get Usage Summary

Owner-scoped usage meter read.

Reuses the metering primitives: used_in_window already SUMs abs(amount) = per-rotor COMPUTE units (a 4-rotor static counts 4), so the meter inherits compute-unit accounting. The tier is resolved via entitlement_for (default-down: a forged/unknown tier → free, never pro), never a raw dict lookup of the request-supplied tier.

resets_at is the ROLLING window's next age-out instant — the oldest in-window debit's created_at + the window length. With no in-window debit there is nothing pending to age out, so resets_at = now. It is NEVER since + window (which equals now for every request because since = now - window).

get/v1/compute-units/summary

Request

  • Base URL: https://thrustlab.com
  • URL: https://thrustlab.com/v1/compute-units/summary
  • Auth: HTTP bearer

Response

Successful Response

capinteger nullable
object'credit_usage_summary'
remaininginteger nullable
resets_atstring required
tierstring required
usedinteger required
window'day' | 'week' required

Changes

No recorded changes to this operation across all 1 revision of this API.