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

# Register a new user

`POST /auth/register`

Allows a new user to register with the system by providing necessary details.  The user will receive an access token upon successful registration.

## Request body

- RegisterRequest
  - `username` string, required — The username of the user to register.
  - `password` string, password, required — The password for the user.
  - `email` string, email, required — The email address of the user.

## Response `201`

User registered successfully.

- SuccessResponse
  - `status` string
  - `code` integer
  - `message` string

## Other responses

- `400` — Invalid registration data.
- `409` — User already exists.
- `500` — Internal server error during registration.

## Changes

- **2024-10-17** `53644f0719aa` — 1 info
  - endpoint added

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

---

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