---
title: "Validate Referral Code"
method: GET
path: "/referral/validate/{code}"
tags: ["referral"]
---

# Validate Referral Code

`GET /referral/validate/{code}`

Validate a referral code (public endpoint, used during signup).

Returns whether the code is valid and the referrer's display name.
Also checks if the referrer has hit any limits.

## Path parameters

- `code` string, required

## Response `200`

Successful Response

- ValidateReferralCodeResponse — Response for referral code validation.
  - `valid` boolean, required
  - `referrer_name` string, nullable
  - `reward_amount` integer, nullable
  - `message` string, nullable

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/meganova/apis/fastapi.md) · [All operations](https://skmtc.net/meganova/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/meganova/fastapi/revisions/2b2bab8b9017/schema)
