POST /info/referral

Auth X-Hub-Key from API_HUB_KEYExecute POST /run/hyperliquid/info/referralCache executed live on every call — a read-only POST answer is never cachedCost free · weight 0 · standard rate classSource billing free

Referral code, referrer info, cumulative volume, and unclaimed referral rewards.

Parameters

nameintypedescription
userbodystrrequiredEVM address of the account.
example: 0x85ecf584f25db6f146718b86d493e33c5af72052

Response

type: object
data key: tokenToState
pagination: none
sample: {
  "referredBy": "object",
  "cumVlm": "str",
  "unclaimedRewards": "str",
  "claimedRewards": "str",
  "builderRewards": "str",
  "referrerState": "object",
  "rewardHistory": "array[0]",
  "tokenToState": "array[1]"
}

Safe request

Reads the credential from API_HUB_KEY; it never appears in the URL.

curl -sX POST "https://openapihub.dev/run/hyperliquid/info/referral" \
  -H "X-Hub-Key: $API_HUB_KEY" -H "Content-Type: application/json" \
  -d '{"user": "0x85ecf584f25db6f146718b86d493e33c5af72052"}'