Get current billing period usage
Retrieve usage statistics for the current billing period
/api/v2/billing/usage/currentAuthorizationBearer token (Anlyon API key) · headerrequiredWorkspace API key sent as Authorization: Bearer <key>.
better-auth.session_tokenAPI key · cookierequiredBrowser session used by dashboard-only operations.
X-Request-IdstringOptional caller correlation ID. Unsafe or oversized values are replaced.
Current calendar-month usage and estimated cost returned.
successbooleanrequiredtruedataobjectrequiredShow propertiesHide properties
currentMonthMessagesintegerrequiredcurrentMonthBandwidthintegerrequiredBytes., example: 52428800
dailyMessagesintegerrequiredestimatedCostnumberrequiredEstimated cost in major currency units., example: 0.05
billingPeriodStartstring<date-time>requiredbillingPeriodEndstring<date-time>requiredusageResetDatestring<date-time>requiredUnauthorized - Invalid or missing API key
successbooleanrequiredrequestIdstringrequiredCorrelation ID matching the X-Request-Id response header.
errorobjectrequiredShow propertiesHide properties
codestringmessagestringdetailsobjectAuthenticated credential lacks the required scope or workspace access.
successbooleanrequiredrequestIdstringrequiredCorrelation ID matching the X-Request-Id response header.
errorobjectrequiredShow propertiesHide properties
codestringmessagestringdetailsobjectNot Found - Resource does not exist
successbooleanrequiredrequestIdstringrequiredCorrelation ID matching the X-Request-Id response header.
errorobjectrequiredShow propertiesHide properties
codestringmessagestringdetailsobjectToo Many Requests - Rate limit exceeded
successbooleanrequiredrequestIdstringrequiredCorrelation ID matching the X-Request-Id response header.
errorobjectrequiredShow propertiesHide properties
codestringmessagestringdetailsobject
