---
title: "Validate Referral Code"
method: POST
path: "/referrals/validate/{code}"
tags: ["General APIs with JWT"]
---

# Validate Referral Code

`POST /referrals/validate/{code}`

Validate a referral code (public endpoint for registration flow).

## Path parameters

- `code` string, required

## Response `200`

Successful Response

- ValidateReferralResponse
  - `valid` boolean, required
  - `referrer_name` string, nullable

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/lium/apis/lium-backend-api.md) · [All operations](https://skmtc.dev/lium/apis/lium-backend-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/lium/lium-backend-api/revisions/57db0a9348db/schema)
