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
- Base URLhttps://api.usecreed.com (the document declares no server; this is the origin it was published from)
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Headers
x-user-idstring nullable
Response
Successful Response
Changes
No recorded changes to this operation across all 23 revisions of this API.