Skip to main content
POST
Attribute a referral code

Authorizations

Authorization
string
header
required

SIWE access token returned by POST /auth/verify.

Body

application/json
code
string
required

Referral code to attribute the authenticated user to.

Maximum string length: 32
Example:

"UM-7ZAFAB8F"

Response

Attribution recorded.

ok
boolean
changed
boolean

True when this call set the referrer (first touch); false when already attributed.

referredBy
string

Wallet address of the referrer.