List Ledger Entries
Billing
List Ledger Entries
Paginated credit-ledger history for the active team.
GET
List Ledger Entries
Returns the team’s credit transactions in reverse-chronological order. Every debit (image/video generation, render) and credit (monthly reset, refund, coupon claim, top-up) is a row. Useful for building a usage dashboard, reconciling end-of-month spend, or surfacing “why did my balance drop?” to the user.
Scoped to the team selected by the caller’s session / API key. RLS already enforces team membership.
Query Parameters
Return rows strictly older than this timestamp. Use the
created_at
of the last row on the previous page as the cursor.Response
200
Fields
Signed credit change. Negative for spends, positive for grants /
refunds / top-ups.
One of
image_gen, video_gen, render, monthly_reset,
initial_grant, plan_change_topup, refund, admin_grant,
coupon_claim.Model that incurred the debit, for generation rows.
null for
non-generation reasons.Monthly-plan balance immediately after this row was written.
api_key (agent / server-to-server), jwt (dashboard session), or
null (system-issued row like monthly_reset).true when more rows exist older than the last returned row. Page
again with ?before=<last_created_at>.Example
cURL