Skip to content

Onboard an affiliate

POST/api/v1/affiliates

Creates (or finds) an affiliate by email and enrolls them in your app’s program, returning their referral handle and tracked link, ready to show back to the partner.

status comes back pending when the program requires approval; the affiliate then appears in the console’s approval queue and gets portal access once approved. Affiliates sign in at partnerconsole.co/portal with the enrolled email: passwordless one-time codes, nothing for you to provision.

appstringrequired
Your app’s slug; the affiliate joins this app’s program.
emailstringrequired
The affiliate’s portal sign-in identity.
namestring
Display name.
handlestring
Requested referral handle; derived from the name or email and de-duplicated when omitted.
201New affiliate created and enrolled.
200Email already existed; the current enrollment is returned (safe to retry).
400Invalid email, or the app has no affiliate program yet.
401Bad or missing X-Api-Key.