referrals

Get Or Create Referral Code

Get the authenticated user's referral code, creating one if it doesn't exist. If the user has an active code, it will be returned. If not, a new code will be created and returned.

Returns: ReferralCodeResponse with code details

get/api/referrals/code

Request

Headers

x-user-idstring nullable

Response

Successful Response

successboolean required
codestring required
messagestring required
redemptionsinteger required

Changes

No recorded changes to this operation across all 23 revisions of this API.