---
title: "Api Auth Register"
method: POST
path: "/api/auth/register"
---

# Api Auth Register

`POST /api/auth/register`

## Request

- Base URL: `https://magicmaster.pro` (the document declares no server; this is the origin it was published from)
- URL: `https://magicmaster.pro/api/auth/register`
- Auth: none declared

Зарегистрировать нового пользователя. P41: при REQUIRE_EMAIL_VERIFY=true — отправляет письмо.

## Request body

- RegisterRequest
  - `email` string, required
  - `password` string, required
  - `ref` string, nullable
  - `acq` AcquisitionInfo: Первое касание: откуда человек пришёл в первый раз. Собирается фронтом при первом визите и лежит в localStorage до регистрации. Всё необязательно: если человек пришёл напрямую, полей просто нет.
    - `source` string, nullable
    - `medium` string, nullable
    - `campaign` string, nullable
    - `ref` string, nullable
    - `referrer` string, nullable
    - `landing` string, nullable
    - `first_seen` number, nullable
  - `campaign` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/magicmaster/apis/magic-master-api.md) · [All operations](https://skmtc.dev/magicmaster/apis/magic-master-api/llms.txt) · [OpenAPI document](https://skmtc.dev/magicmaster/apis/magic-master-api/revisions/df18cf8ba136?raw)
