Returns the per-account rollup of credit usage over the selected period, sorted by total credits deducted descending. Each row carries the account identity (UUID + display name + primary email) and the aggregated spend so the admin dashboard can render a top-spenders table without joining client-side. Pair with GET /api/admins/credits/events?account_id=…&period=… to drill into the individual usage_events rows for a single account. Requires the authenticated account to be a Recoup admin.
Documentation Index
Fetch the complete documentation index at: https://developers.recoupable.com/llms.txt
Use this file to discover all available pages before exploring further.
Your Recoup API key. Learn more.
Rollup window. daily = today (last 1 day), weekly = last 7 days, monthly = last 30 days, all = no cutoff (every event ever recorded). Defaults to monthly. Follows the existing admin period convention.
all, daily, weekly, monthly Page size — number of accounts to return per request, sorted by total credits deducted descending. Defaults to 100; max 500.
1 <= x <= 5001-indexed page number. Server returns rows (page - 1) * limit through page * limit - 1. Defaults to 1. Use total_count in the response to drive a 'load more' control (page * limit < total_count).
x >= 1Credit usage rollup retrieved successfully
Status of the request
success, error The period the response was computed over (echoes the request)
all, daily, weekly, monthly 1-indexed page returned (echoes the request, or 1 if omitted)
x >= 1Page size used for this response (echoes the request, or the default if omitted)
x >= 1Total number of distinct accounts with at least one usage_events row in the selected period (i.e. the size of the full result set before pagination). The client derives has_more as page * limit < total_count and shows 'X of Y accounts'. Computed via a COUNT(DISTINCT account_id) query alongside the paginated row fetch.
x >= 0Per-account credit usage totals, sorted by total_credits_deducted_cents descending
Error message (only present if status is 'error')