Get the caller's referral program page data
Returns everything the referrals page needs in one call: the resolved program (payg|enterprise), the shareable sign-up link (code embedded), server-computed credit + USD amounts, the lifetime cap, stats, and the caller’s referral rows. Lazily creates the caller’s referral code.
Authorizations
JWT authentication token
Response
Referral program data
Server-computed reward amounts. USD is the credits' purchase value (credits x the top-up rate) and is the only dollar figure surfaced - the UI labels it "additional usage" and no longer shows credit counts. Computed server-side so the UI never does the math or hardcodes numbers.
Shareable sign-up link with the code embedded (ref=CODE); the code is never surfaced separately. Empty for the free program.
Lifetime successful-referral cap (config-sourced), shown as X of N
Server-resolved from the caller's tag AND their live subscription state. free means not entitled - on the Free plan, never subscribed, or lapsed - and the UI renders the upgrade screen. A free response carries the amounts (the upgrade copy quotes them) with an empty link, zero stats and no rows; no referral code is minted for a caller who cannot be paid out.
payg, enterprise, free Days after the referee's first payment before the referrer's reward is granted (config-sourced; the terms copy quotes it). The referee's own reward has no hold.
Enterprise program only: the caller's submitted sales leads (omitted/empty for PAYG)

