Embed it
Add the script inside your authenticated app, with a publishable key:Attributes
string
required
A publishable key (
pk_…) from Settings → Developers. Safe to expose in the browser.string
required
Your stable user id — becomes the referrer’s
external_user_id.string
required
The user’s email.
string
required
free or paid — determines the reward amount the user earns for referrals./api/v1/referrals/enroll on
load, so each signed-in user is enrolled and given their link automatically.
Completing the loop
The widget handles enrollment and sharing. To reward the referrer, report the referred signup from your backend when a new user registers — see/api/v1/referrals/report-signup. Pair this with
credit fulfilment to deliver the reward automatically.

