Referrals

GET /api/v1/referrals/code/{code}

Pre-wallet-connect validation of a referral code. Returns whether the code exists and is still active (can accept new referrals). No auth needed.

If the code doesn't exist, returns is_valid: false (not a 404).

get/api/v1/referrals/code/{code}

Request

  • Base URL
    https://api.mainnet.aptoslabs.com/decibel
  • URL
    https://api.mainnet.aptoslabs.com/decibel/api/v1/referrals/code/{code}
  • Auth
    HTTP bearer

Path parameters

codestring required

The referral code to validate

Response

Code validation result

is_activeboolean required

Whether the code can still accept new referrals

is_validboolean required

Whether the code exists

referral_codestring required

The referral code that was checked

Changes

No recorded changes to this operation across all 1 revision of this API.