pk_) or secret (lk_) key, so they’re safe to call from the
browser.
Enroll a referrer
POST /api/v1/referrals/enroll — enroll a user as a referrer and mint their referral link.
Idempotent on (workspace, external_user_id).
The user’s email.
Your stable user id.
free or paid — sets the reward amount.Target a specific programme; defaults to your most recent one.
The user’s name.
A device fingerprint, used for self-referral checks.
The user’s shareable referral URL.
The enrollment status (auto-approved for referrals).
Report a signup
POST /api/v1/referrals/report-signup — tell TrackRev that a referred user signed up, so the
referrer earns their reward. Idempotent per new user.
The new user’s id.
The new user’s email.
The new user’s device fingerprint (for self-referral checks).
The referrer’s link slug — the primary way to resolve who referred them.
A visitor id — resolves the referrer from the most recent click if no
ref_code.Name the referrer explicitly.
ref_code → _vid → referrer_external_user_id. TrackRev runs
self-referral checks; blocked grants are recorded as revoked and no
reward webhook fires.
Whether a referrer was found.
Whether the reward was blocked as a self-referral.
If no referrer matches, the response is
{ "matched": false } with a 200 status — a signup with
no referrer isn’t an error.
