Skip to main content
GET
/
api
/
v1
/
referrals
/
account
/
{account}
Handler to get referral info for an account (who referred them)
curl --request GET \
  --url https://api.mainnet.aptoslabs.com/decibel/api/v1/referrals/account/{account} \
  --header 'Authorization: Bearer <token>'
{
  "account": "<string>",
  "is_active": true,
  "is_affiliate_referral": true,
  "referral_code": "<string>",
  "referred_at_ms": 123,
  "referrer_account": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.decibel.trade/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Bearer token from Geomi. See Authentication for setup instructions.

Path Parameters

account
string
required

The wallet address to look up referral info for (not a subaccount address)

Response

Successfully retrieved account referral info

Account referral information - shows who referred this account

account
string
required

The referred user's wallet address (not a subaccount address)

is_active
boolean
required

Whether the referral code is still active (can accept new referrals)

is_affiliate_referral
boolean
required
referral_code
string
required
referred_at_ms
integer<int64>
required
referrer_account
string
required

The referrer's wallet address