Apply referral
POST/track/referral
Applying Referral
This endpoint allows you to apply referrals for a user via your backend system.
Edit the Base URL
in request schema for switching between regions.
Request Headers
apikey
: Your private API key (required for authorization)
Request Parameters
uid
(string, required): UUID of the user receiving the referral (must be identified first)referral_code
(string, optional): Referral code used. Optional for lead-added flows.
Sample Request
{
"uid": "2762ff09-d7f0-4288-b25d-e5ffe5434724",
"referral_code": "nudgeQWE12"
}
Successful Response
{
"ref_by": "98dcec9a-b0c2-4d90-a82a-7351bd6f9f28",
"ref_by_name": "Alice Doe",
"props_bool": {
"referred": true
},
"props_text": {
"ref_channel": "social"
}
}
Response Fields
Field | Type | Description |
---|---|---|
ref_by | string | UUIDv4 of the referrer |
ref_by_name | string | Name of the referrer |
props_bool | object | Boolean properties applied to the referred user |
props_text | object | Text properties applied to the referred user |
Rate Limits
- 100 requests per second
Request
Responses
- 200
- 400
- 401
- 500
Successful response with referral data
Bad request - validation, referral, or user errors
Unauthorized - missing or invalid API key
Internal server error