Skip to main content
POST
Enter protocol referral code

Authorizations

Authorization
string
header
required

JWT token or API key

Body

application/json
referral_code
string
required

The referral code to enter

Example:

"alice2025"

network_mode
enum<string>
default:mainnet

Network mode for this referral code

Available options:
testnet,
mainnet,
both
Example:

"mainnet"

Response

Successful response

success
enum<boolean>
required
Available options:
true
referrer_code
string
required

The referral code that was entered

Example:

"alice2025"

message
string
required

Success message

Example:

"Referral code successfully applied"