---
title: "public/get_all_referral_codes"
method: POST
path: "/public/get_all_referral_codes"
tags: ["Referrals"]
---

# public/get_all_referral_codes

`POST /public/get_all_referral_codes`

## Request

- Base URL: `https://api.derive.xyz/v3`
- URL: `https://api.derive.xyz/v3/public/get_all_referral_codes`
- Auth: none declared

Returns every registered referral code along with the owner's wallet address and, when configured, the wallet that receives referral rewards. Takes no parameters.

## Request body

- GetAllReferralCodesParams

## Response `200`

Success

- Referrer[]
  - `receiving_wallet` string, nullable
  - `referral_code` string, required
  - `wallet` string, required

## Other responses

- `default`: JSON-RPC error (see Error Codes)

## Changes

- **2026-10-20** `0c500202be49`: 1 info
  - added the media type `application/json` for the response with the status `default`

[Operation history](https://skmtc.dev/lyra/apis/derive-v3-api/changes/public/get_all_referral_codes/post.md)

---

[API](https://skmtc.dev/lyra/apis/derive-v3-api.md) - [All operations](https://skmtc.dev/lyra/apis/derive-v3-api/llms.txt) - [OpenAPI document](https://skmtc.dev/lyra/apis/derive-v3-api/revisions/415f8a73b10c?raw)
