---
title: "Register"
method: POST
path: "/api/auth/register"
tags: ["authentication"]
---

# Register

`POST /api/auth/register`

Register a new user with email and password
Returns JWT token on success

## Request body

- UserSignup
  - `name` string, required
  - `email` string, email, required
  - `password` string, required
  - `promo_code` string, nullable

## Response `200`

Successful Response

- TokenResponse
  - `access_token` string, required
  - `token_type` string
  - `user` object, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/qomplement/apis/fastapi.md) · [All operations](https://skmtc.net/qomplement/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/qomplement/fastapi/revisions/718de1c0d866/schema)
