---
title: "Register a new user with email and password"
method: POST
path: "/api/auth/register"
tags: ["auth"]
---

# Register a new user with email and password

`POST /api/auth/register`

## Request

- The document declares no server URL.
- Auth: none declared

## Request body

- RegisterRequest
  - `display_name` string, required
  - `email` string, required
  - `password` string, required
  - `turnstile_token` string, nullable: Cloudflare Turnstile response token. Required (and verified server-side) only when the deployment has the bot gate enabled; ignored otherwise.

## Response `201`

Registration accepted — identical whether or not the email already has an account

- MessageResponse
  - `message` string, required

## Other responses

- `400`: Invalid input
- `503`: Registration temporarily unavailable

## Changes

- **2026-08-01** `3a4961b746cd`: 1 info
  - added the new optional request property `turnstile_token`
- **2026-08-01** `e052f4303905`: 2 info
  - added the non-success response with the status `503`
  - removed the non-success response with the status `409`
- **2026-05-05** `68e179aba81a`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/scholia-study/apis/scholia-api/changes/api/auth/register/post.md)

---

[API](https://skmtc.dev/scholia-study/apis/scholia-api.md) - [All operations](https://skmtc.dev/scholia-study/apis/scholia-api/llms.txt) - [OpenAPI document](https://skmtc.dev/scholia-study/apis/scholia-api/revisions/684b3751bfd3?raw)
