Skip to main content
GET

Description

The referral API endpoints allow you to generate referral codes, track referral performance, and view reward statistics. Users earn points when their referrals trade, create tokens, or achieve milestones.

Endpoints

Get Referral Code

endpoint
Generate or retrieve your unique referral code

Headers

string
required
Bearer token or wallet signature for authentication

Response


Get Referral Stats

endpoint
Get detailed statistics about your referral performance

Headers

string
required
Bearer token or wallet signature for authentication

Query Parameters

string
default:"all"
Time period for stats. Options: 24h, 7d, 30d, all

Response


Register with Referral Code

endpoint
Register a new user with a referral code

Request Body

string
required
The referral code to use for registration
string
required
The wallet address of the new user

Response


Get Referral Leaderboard

endpoint
View the top referrers on the platform

Query Parameters

number
default:"10"
Number of top referrers to return (max: 100)
string
default:"all"
Time period for leaderboard. Options: 24h, 7d, 30d, all

Response

Reward Structure

Rate Limiting

Referral API endpoints have specific rate limits:
  • Generate/Get Code: 10 requests per minute
  • Stats/Leaderboard: 30 requests per minute
  • Registration: 5 requests per minute per IP