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

# Create user

`POST /api/users`

Creates a new user

## Request body

- UserRequest — POST body for creating a user
  - `user` User — A user of the app
    - `email` string, email, required — Email address
    - `id` integer — User ID
    - `inserted_at` string, datetime — Creation timestamp
    - `name` string, required — User name
    - `updated_at` string, datetime — Update timestamp

## Response `201`

User created OK

- UserResponse — Response schema for single user
  - `data` User — A user of the app
    - `email` string, email, required — Email address
    - `id` integer — User ID
    - `inserted_at` string, datetime — Creation timestamp
    - `name` string, required — User name
    - `updated_at` string, datetime — Update timestamp

## Changes

- **2017-08-10** `4677b1b2a108` — 1 info
  - api operation id `Simple.Web.UserController.create` removed and replaced with `SimpleWeb.UserController.create`
- **2017-04-29** `0238bcac02d7` — 1 info
  - api operation id `Simple.UserController.create` removed and replaced with `Simple.Web.UserController.create`
- **2017-02-26** `3d2f28418f31` — 1 info
  - api operation id `SimpleWeb.UserController.create` removed and replaced with `Simple.UserController.create`

[Change history](https://skmtc.dev/xerions/apis/simple-app/changes/api/users/post.md)

---

[API](https://skmtc.dev/xerions/apis/simple-app.md) · [All operations](https://skmtc.dev/xerions/apis/simple-app/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/xerions/simple-app/revisions/fe3d878a074d/schema)
