---
title: "Check Promo"
method: POST
path: "/api/auth/check-promo"
---

# Check Promo

`POST /api/auth/check-promo`

## Request

- Base URL: `https://app.pharos.bio` (the document declares no server; this is the origin it was published from)
- URL: `https://app.pharos.bio/api/auth/check-promo`
- Auth: none declared

Public pre-sign-up check for the closed-beta promo gate.

Returns whether the submitted code is valid so the frontend can show a
clean error before calling supabase.auth.signUp(). The real enforcement
is a BEFORE INSERT trigger on auth.users (see SUPABASE_PROFILES_SETUP.md);
this endpoint is purely for the user-facing message.

## Request body

- PromoCheck: Body for POST /api/auth/check-promo — closed-beta sign-up gate.
  - `promo_code` string

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/pharos/apis/agentic-data-scientist.md) - [All operations](https://skmtc.dev/pharos/apis/agentic-data-scientist/llms.txt) - [OpenAPI document](https://skmtc.dev/pharos/apis/agentic-data-scientist/revisions/7c77a7fe3870?raw)
