---
title: "Register"
method: POST
path: "/api/v1/auth/register"
---

# Register

`POST /api/v1/auth/register`

Register a new user.

Creates a user in Supabase Auth, then creates the user across
all internal systems (PostgreSQL & Gitea) with automatic rollback on failure.

## Request body

- RegisterRequest
  - `email` string, required
  - `password` string, required
  - `username` string, required
  - `fullName` string, nullable
  - `returnTo` string, nullable
  - `inviteCode` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/modaic-ai/apis/modaic-api.md) · [All operations](https://skmtc.net/modaic-ai/apis/modaic-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/modaic-ai/modaic-api/versions/43a90513ac59/schema)
