---
title: "Referral Config"
method: GET
path: "/api/referrals/config"
tags: ["Referrals"]
---

# Referral Config

`GET /api/referrals/config`

## Request

- Base URL: `https://backend-global.gains.trade`
- URL: `https://backend-global.gains.trade/api/referrals/config`
- Auth: none declared
- TypeScript: <https://skmtc.dev/gains/apis/gains-network-backend-api/docs/api/referrals/config/get.ts> (a function with typed inputs; its response is checked against the schema)

Returns the EIP-712 domain values and the standard reward rates. Probe this endpoint to detect whether referrals are enabled on a deployment; any non-200 means the feature is unavailable. Never hardcode `chainId` or `distributor`.

## Response `200`

Successful response

- object
  - `result` ReferralConfig
    - `chainId` integer: Hub chain the EIP-712 domain and the claim are bound to.
    - `distributor` string: Distributor contract, and the EIP-712 verifyingContract.
    - `l1RateBps` integer: Standard level-1 rate in basis points.
    - `l2RateBps` integer: Standard level-2 rate in basis points.

## Other responses

- `503`: Referrals are not configured on this deployment

## Changes

- **2026-11-03** `4b415b6ff9d6`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/gains/apis/gains-network-backend-api/changes/api/referrals/config/get.md)

---

[API](https://skmtc.dev/gains/apis/gains-network-backend-api.md) - [All operations](https://skmtc.dev/gains/apis/gains-network-backend-api/llms.txt) - [OpenAPI document](https://skmtc.dev/gains/apis/gains-network-backend-api/revisions/4b415b6ff9d6?raw)
