---
title: "Register a new user"
method: POST
path: "/api/auth/register"
tags: ["Auth"]
---

# Register a new user

`POST /api/auth/register`

Creates a new user account in the Endatix application using the provided email and password.

## Request body

- RegisterRequest — Represents the request for the "/register" endpoint, handled by the HandleAsync method.
  - `email` string, email, required — The email address of the user.
  - `password` string — The password chosen by the user.
  - `confirmPassword` string, required — The confirmation of the password chosen by the user.

## Response `200`

User has been successfully registered.

- RegisterResponse — The response type for the "/register" endpoint returned by the HandleAsync method.
  - `success` boolean — Indicates whether the registration was successful.
  - `message` string — A message describing the outcome of the registration attempt.

## Other responses

- `400` — Registration failed. Please check your input and try again.

## Changes

- **2025-11-21** `50eff5014b78` — 1 breaking, 3 warning, 8 info
  - media type `application/problem+json` was changed to a more general media type `application/json` for the response status `400`
  - removed the optional property `errors` from the response with the `400` status
  - removed the optional property `message` from the response with the `400` status
  - removed the optional property `statusCode` from the response with the `400` status
  - …8 more
- **2025-03-24** `fbc3fe6ecbf1` — 5 warning, 7 info
  - removed the optional property `detail` from the response with the `400` status
  - removed the optional property `instance` from the response with the `400` status
  - removed the optional property `status` from the response with the `400` status
  - removed the optional property `title` from the response with the `400` status
  - …8 more

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

---

[API](https://skmtc.dev/endatix/apis/endatix-platform-rest-api.md) · [All operations](https://skmtc.dev/endatix/apis/endatix-platform-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/endatix/endatix-platform-rest-api/revisions/01bd299fd100/schema)
