POST
/api/v2/users/{userId}/referrals/attributionCreates the immutable rewarded relationship after registration succeeds.
Authentication
Send your API key in the x-api-key header on every request.
Parameters
| Field | Type | Required | Description |
|---|---|---|---|
| userId (path) | integer (int32) | Yes |
Request body
application/json
| Field | Type | Required | Description |
|---|---|---|---|
| ReferralCode | string | Yes | |
| Source | string | Yes |
Responses
204 — No Content
Example request
curl -X POST "https://{base_url}/api/v2/users/{userId}/referrals/attribution" \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"ReferralCode":"…","Source":"…"}'This page is generated from the live OpenAPI specification and always matches the current API.