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

# Validate Referral Code

`GET /api/referral/validate/{code}`

## Request

- Base URL: `https://api.dialogbrain.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.dialogbrain.com/api/referral/validate/{code}`
- Auth: none declared

Validate a referral code (public endpoint, no auth required).

Used by signup page to validate code before registration.

## Path parameters

- `code` string, required

## Response `200`

Successful Response

- ValidateCodeResponse
  - `valid` boolean, required
  - `referrer_name` string, nullable
  - `type` string, nullable
  - `bonus_credits` integer, nullable
  - `signup_credits` integer, nullable
  - `free_channels_days` integer, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway.md) · [All operations](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway/llms.txt) · [OpenAPI document](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway/revisions/77bef09a9209?raw)
