cURL
curl --request POST \ --url https://perp-api.phoenix.trade/v1/invite/activate-with-referral \ --header 'Content-Type: application/json' \ --data ' { "authority": "string", "referral_code": "string" } '
{ "trader_pda": "<string>" }
Activates a new trader using a referral code (no invite code required). Creates the user, claims the referral atomically, triggers onboarding, and waits up to 5s for the trader PDA to appear in PhoenixState.
JSON request payload for v1.invite_referrals_waitlist.activate_invite_authority_with_referral.
v1.invite_referrals_waitlist.activate_invite_authority_with_referral
Trader created