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

# Validate Referral Code

`GET /referrals/validate/{code}`

Validate a referral code.

Public endpoint - does not require authentication.
Returns the referrer's first name if valid.

## Path parameters

- `code` string, required

## Response `200`

Successful Response

- ValidateResponse — Response from validating a referral code.
  - `valid` boolean, required
  - `referrer_first_name` string, nullable
  - `referrer_id` string, uuid, nullable
  - `message` string, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/helloaxel/apis/client-api-gateway.md) · [All operations](https://skmtc.dev/helloaxel/apis/client-api-gateway/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/helloaxel/client-api-gateway/revisions/d3c4c29fede7/schema)
