---
title: "User registration"
method: POST
path: "/api/auth/register"
tags: ["Auth"]
---

# User registration

`POST /api/auth/register`

## Request body

- RegisterRequest — Request body for user registration.
  - `email` string, required — User's email address
  - `password` string, required — User's password (minimum 8 characters)

## Response `200`

Registration successful

- RegisterResponse — Response for successful user registration
  - `message` string, required — Success message
  - `user_id` string, uuid, required — Unique identifier of the registered user

## Other responses

- `400` — Invalid input or email already exists
- `500` — Internal server error

## Changes

- **2025-09-01** `a2488be8a6e4` — 3 breaking, 1 warning, 3 info
  - removed the media type `application/json` for the response with the status `400`
  - removed the media type `application/json` for the response with the status `500`
  - removed the required property `user` from the response with the `200` status
  - removed the request property `displayName`
  - …3 more

[Change history](https://skmtc.dev/patroninc/apis/patron-api/changes/api/auth/register/post.md)

---

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