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

# Register

`POST /api/auth/register`

## Request

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

注册新用户。

## Request body

- UserRegister
  - `username` string, required
  - `email` string, email, required
  - `password` string, required
  - `display_name` string, nullable

## Response `200`

Successful Response

- UserProfile
  - `id` integer, required
  - `username` string, required
  - `email` string, required
  - `display_name` string, nullable
  - `role` string
  - `is_active` boolean, required
  - `created_at` string, date-time, required
  - `has_api_key` boolean
  - `api_provider` string, nullable
  - `api_model` string, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/fojin/apis/fojin-api-buddhist-digital-text-platform.md) · [All operations](https://skmtc.dev/fojin/apis/fojin-api-buddhist-digital-text-platform/llms.txt) · [OpenAPI document](https://skmtc.dev/fojin/apis/fojin-api-buddhist-digital-text-platform/revisions/969714238c61?raw)
