---
title: "Handler to get referral info for an account (who referred them)"
method: GET
path: "/api/v1/referrals/account/{account}"
tags: ["Referrals"]
---

# Handler to get referral info for an account (who referred them)

`GET /api/v1/referrals/account/{account}`

## Request

- Base URL: `https://api.mainnet.aptoslabs.com/decibel`
- URL: `https://api.mainnet.aptoslabs.com/decibel/api/v1/referrals/account/{account}`
- Auth: HTTP bearer

## Path parameters

- `account` string, required

## Response `200`

Successfully retrieved account referral info

- AccountReferralInfo: 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, required
  - `referrer_account` string, required: The referrer's wallet address

## Other responses

- `400`: Invalid account address
- `404`: Account was not referred or not found
- `500`: Internal server error

---

[API](https://skmtc.dev/decibel/apis/decibel-trading-api.md) - [All operations](https://skmtc.dev/decibel/apis/decibel-trading-api/llms.txt) - [OpenAPI document](https://skmtc.dev/decibel/apis/decibel-trading-api/revisions/37a02083ff59?raw)
