Credits
Get aggregated credit usage statistics
Returns company credit usage for an inclusive date range together with the equally sized preceding period. The maximum range is 1,830 days.
GET
cURL
Metric semantics
fromandtoare inclusiveYYYY-MM-DDdates. The maximum range is 1,830 days.summary.previous_period_spentuses the equally sized period immediately beforefrom.daily,by_module,by_service, andby_userprovide different aggregations of the same credit ledger.lasso.products_enhancedis a snapshot of rows enhanced in qualifying tables, whilelasso.credits_per_productdivides the selected period’s Lasso credit spend by that snapshot count.currency_configreflects the company’s configured billing currency and cost-per-credit settings.
Allocation and cost
summary.monthly_allocation is the regular monthly allowance, not the remaining balance or the sum of purchased packages. summary.cost_per_credit and currency_config use configured subscription fees and allowance; they do not represent the actual price of a particular one-time purchase.
Use credit balance for the available balance. Check package validity in the app’s credit overview.Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
Inclusive start date in YYYY-MM-DD format.
Inclusive end date in YYYY-MM-DD format.

