---
title: "GET /api/v1/referrals/code/{code}"
method: GET
path: "/api/v1/referrals/code/{code}"
tags: ["Referrals"]
---

# GET /api/v1/referrals/code/{code}

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

Pre-wallet-connect validation of a referral code. Returns whether the code
exists and is still active (can accept new referrals). No auth needed.

If the code doesn't exist, returns `is_valid: false` (not a 404).

## Path parameters

- `code` string, required

## Response `200`

Code validation result

- ReferralCodeValidationDto — Response for GET /api/v1/referrals/code/{code} — pre-wallet-connect validation
  - `is_active` boolean, required — Whether the code can still accept new referrals
  - `is_valid` boolean, required — Whether the code exists
  - `referral_code` string, required — The referral code that was checked

## Other responses

- `400` — Invalid code format
- `500` — Internal server error

---

[API](https://skmtc.net/decibel/apis/decibel-trading-api.md) · [All operations](https://skmtc.net/decibel/apis/decibel-trading-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/decibel/decibel-trading-api/revisions/37a02083ff59/schema)
