---
title: "Registers a new account"
method: POST
path: "/auth/register"
tags: ["auth"]
---

# Registers a new account

`POST /auth/register`

## Request body

- Registration
  - `login` string, required — email address
  - `password` string, required
  - `fname` string, required — first name
  - `lname` string, required — last name
  - `discount_code` string — optional discount code

## Response `200`

successful registration

- object
  - `status` string
  - `user_id` integer

## Other responses

- `405` — Invalid input

---

[API](https://skmtc.dev/swaggerhub/apis/handwrytten-api.md) · [All operations](https://skmtc.dev/swaggerhub/apis/handwrytten-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/swaggerhub/handwrytten-api/revisions/45e7c951cdd6/schema)
