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

# Register a new user

`POST /api/auth/register`

## Request body

- object
  - `email` string, email, required
  - `password` string, required
  - `name` string, required

## Response `201`

User registered successfully

- AuthResponse
  - `token` string
  - `user` object
    - `id` string
    - `name` string
    - `email` string, email
    - `role` 'user' | 'admin'

## Other responses

- `400` — Invalid request
- `409` — Email already registered

## Changes

- **2026-08-18** `7d769a938487` — 1 info
  - api operation id `registerUser` was added

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

---

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