admin
Admin Stats Clients
Per-client revenue vs AI cost vs comped credits → gross margin, over the window. Sorted server-side (default: margin desc). Two grouped scans (BillingEvent, AIUsageLog) joined in memory — no per-client N+1.
get/api/v1/admin/stats/clients
Request
- Base URL: https://api.nudgelink.co (the document declares no server; this is the origin it was published from)
- URL: https://api.nudgelink.co/api/v1/admin/stats/clients
- Auth: HTTP bearer
Query parameters
daysinteger
sort'margin' | 'revenue' | 'ai_cost'
limitinteger
Response
Successful Response
Changes
No recorded changes to this operation across all 1 revision of this API.