POST/api/v2/users/{userId}/referrals/attribution

Creates the immutable rewarded relationship after registration succeeds.

Authentication

Send your API key in the x-api-key header on every request.

Parameters

Request parameters
FieldTypeRequiredDescription
userId (path)integer (int32)Yes

Request body

application/json

Request body fields
FieldTypeRequiredDescription
ReferralCodestringYes
SourcestringYes

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.