---
title: "Register a new user (first user becomes superadmin)"
method: POST
path: "/auth/register"
tags: ["auth"]
---

# Register a new user (first user becomes superadmin)

`POST /auth/register`

## Response `200`

OK

- object
  - `success` true, required
  - `msg` string, required
  - `data` AuthPayload, required
    - `user` User, required
      - `_id` string, required
      - `firstName` string, required
      - `lastName` string, required
      - `email` string, required
      - `role` string[], required
      - `teamId` string
      - `profileImage` string, nullable
      - `createdAt` string, required
      - `updatedAt` string, required
    - `token` string

## Other responses

- `401` — Unauthorized
- `403` — Forbidden
- `500` — Internal server error

## Changes

- **2026-05-01** `39082d385dda` — 2 breaking, 2 warning, 10 info
  - removed the media type `application/json` from the request body
  - the response's body type/format changed from ``/`` to `object`/`` for status `200`
  - removed the optional property `details` from the response with the `500` status
  - added the new `false` enum value to the `success` response property for the response status `500`
  - …10 more
- **2025-08-11** `db719f9e3d34` — 10 breaking, 6 warning, 11 info
  - request body became required
  - removed the enum value `Demo` of the request property `role`
  - removed the enum value `admin` of the request property `role`
  - removed the enum value `superadmin` of the request property `role`
  - …23 more
- **2025-04-20** `b97ec6888b3c` — 7 breaking, 2 warning, 8 info
  - removed the media type `multipart/form-data` from the request body
  - the response property `data` became optional for the status `200`
  - the response property `msg` became optional for the status `200`
  - the response property `msg` became optional for the status `500`
  - …13 more

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

---

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