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

# Register

`POST /api/auth/register`

## Request

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

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.dev/qomplement/apis/qomplement-api.md) - [All operations](https://skmtc.dev/qomplement/apis/qomplement-api/llms.txt) - [OpenAPI document](https://skmtc.dev/qomplement/apis/qomplement-api/revisions/6fe617c112ef?raw)
