Skip to main content
GET
/
api
/
v1
/
affiliates
/
codes
/
{account}
GET /api/v1/affiliates/codes/{account}
curl --request GET \
  --url https://api.mainnet.aptoslabs.com/decibel/api/v1/affiliates/codes/{account} \
  --header 'Authorization: Bearer <token>'
{
  "codes": [
    {
      "created_at_ms": 123,
      "is_active": true,
      "is_affiliate": true,
      "max_usage": 1,
      "owner_account": "<string>",
      "referral_code": "<string>",
      "usage_count": 1
    }
  ],
  "owner_account": "<string>",
  "volume_threshold_met": true
}

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 owner's wallet address (not a subaccount address)

Response

Affiliate codes with usage stats

Response wrapper for the affiliate codes endpoint

codes
object[]
required

List of affiliate codes with usage stats

owner_account
string
required

The owner's wallet address

volume_threshold_met
boolean
required

Whether the account meets the minimum trade volume threshold to see non-affiliate (auto-generated) codes