List credit grants
GET /api/v1/credits — credit grants and per-kind balances. Scope: secret key (lk_…) only — the grant ledger is workspace data and must not be readable with the browser-visible publishable key.
Each grant:
id, program_id, partner_id, commission_id, credit_kind, amount, status,
external_user_id, referee_external_user_id, earned_at, delivered_at, created_at.Mark a grant delivered
POST /api/v1/credits/{id}/mark-delivered — flip a grant from earned to delivered after you’ve
applied the credit in your product. Scope: secret key (lk_).
Returns { "ok": true }, or { "ok": true, "already": true } if the grant was already delivered.
Firing this also emits a credit.delivered webhook.
If you use a fulfilment connector,
delivery is handled for you — you only need this endpoint when applying credit yourself (e.g. via
the Webhook driver or a custom flow).

