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

# Register

`POST /api/auth/register`

## Request

- Base URL: `https://api.kojiru.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.kojiru.com/api/auth/register`
- Auth: none declared

## Request body

- UserRegister
  - `email` string, email, required
  - `password` string, required
  - `name` string, required
  - `role` string, required
  - `referral_code` string, nullable

## Response `200`

Successful Response

- TokenResponse
  - `access_token` string, required
  - `token_type` string
  - `user` UserResponse, required
    - `id` string, required
    - `email` string, required
    - `name` string, required
    - `role` string, required
    - `wallet_address` string, nullable
    - `kutro_balance` number
    - `created_at` string, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/kojiru/apis/kojiru-api.md) · [All operations](https://skmtc.dev/kojiru/apis/kojiru-api/llms.txt) · [OpenAPI document](https://skmtc.dev/kojiru/apis/kojiru-api/revisions/7974409f57cd?raw)
