Skip to main content
GET
/
api
/
v1
/
referrals
/
code
/
{code}
GET /api/v1/referrals/code/{code}
curl --request GET \
  --url https://api.mainnet.aptoslabs.com/decibel/api/v1/referrals/code/{code} \
  --header 'Authorization: Bearer <token>'
{
  "is_active": true,
  "is_valid": true,
  "referral_code": "<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

code
string
required

The referral code to validate

Response

Code validation result

Response for GET /api/v1/referrals/code/{code} — pre-wallet-connect validation

is_active
boolean
required

Whether the code can still accept new referrals

is_valid
boolean
required

Whether the code exists

referral_code
string
required

The referral code that was checked