Get a subaccount's lifetime usage
Return a child organization’s lifetime usage counters plus its current plan/rate limit — messages sent/received, outbound call count, API call count, credits used, and data-retention days. The counters fall back to the subaccount’s stored metadata when the child tenant schema has not provisioned yet, so this read never fails a still-provisioning subaccount. Memoised for a short TTL on the service so the unbounded COUNT(*) scans the counters derive from do not starve the connection pool. Requires owner or admin on the parent organization.
Authorizations
Dashboard JWT token from Clerk
Headers
Sandbox opt-in for Clerk-session-authenticated requests. Set to true to route the call through the test-mode pipeline: no real provider delivery, no credits deducted, response meta.test_mode: true. Ignored for live API keys (dv_live_sk_*) — server-to-server clients must use a test-prefixed key (dv_test_sk_*) to exercise sandbox. Test-prefixed keys unconditionally enable sandbox regardless of this header.
true, false Path Parameters
Subaccount (child organization) id.
1