Get account usage
Returns the authenticated account’s credit balance (and how much of it comes from the plan, top-ups and bonuses), plan status and price, a forecast of whether the balance lasts until the billing cycle ends at the current spend rate, and credit spend for a window (the current billing cycle unless start_time/end_time say otherwise) broken down by operation, by day, and by the chats and scheduled tasks that spent the most.
Authorizations
API key in the format: Bearer {api_token}
Query Parameters
A named spend window in your time zone, instead of start_time and end_time (which it cannot be combined with): cycle (the current billing cycle, the default), today, last_7_days and last_30_days (each ending today), this_month or last_month.
cycle, today, last_7_days, last_30_days, this_month, last_month Start of the spend window, inclusive, as an ISO 8601 timestamp. Defaults to the start of the current billing cycle (the calendar month without a subscription).
End of the spend window, exclusive, as an ISO 8601 timestamp. Defaults to the end of the current billing cycle. The window cannot exceed 366 days. credits, plan and forecast always describe the current billing cycle.

