---
title: "Create User Account"
method: POST
path: "/api/user"
tags: ["User"]
---

# Create User Account

`POST /api/user`

Create a new user account.

## Request body

- UserCreateSchema — Schema for creating a user.
  - `email` string, required — Email address of the user.
  - `password` string, required — Password for the user.
  - `full_name` string, nullable — Full name of the user.
  - `role` string, nullable — Role of the user.

## Response `200`

Successful Response

- UserSchema — Schema for representing a user.
  - `id` string, uuid, required
  - `email` string, required
  - `is_active` boolean, required
  - `created_at` string, date-time, nullable
  - `updated_at` string, date-time — Timestamp of the last update.

## Other responses

- `422` — Validation Error

## Changes

> 3 revisions in range; 1 not diffed.

- **2023-11-13** `ac1f1ab68fcb` — 1 info
  - the `updated_at` response's property default value changed from `2023-10-29T09:39:34.352880` to `2023-11-12T16:35:58.269569` for the status `200`
- **2023-11-08** `dbd91277da05` — 2 info
  - api operation id `create_user_account_api_user_post` removed and replaced with `create_user_api_user_post`
  - the `updated_at` response's property default value changed from `2024-01-19T17:53:51.443284` to `2023-10-29T09:39:34.352880` for the status `200`

[Change history](https://skmtc.dev/chat-fly/apis/chatfly-backend-application/changes/api/user/post.md)

---

[API](https://skmtc.dev/chat-fly/apis/chatfly-backend-application.md) · [All operations](https://skmtc.dev/chat-fly/apis/chatfly-backend-application/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/chat-fly/chatfly-backend-application/revisions/cbb37496f138/schema)
