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

# Create User

`POST /api/v1/users`

Create a new user with additional data

## Request body

- UserData
  - `data` object, nullable — User additional data in JSON
  - `id` union — User ID in UUIDv4/5
    - string, uuid4
    - string, uuid5
  - `created_at` string, date-time, nullable — Timestamp when the user was created
  - `updated_at` string, date-time, nullable — Timestamp when the user was last updated

## Response `200`

Successful Response

- IdResponse
  - `data` IdData
    - `id` union, required — The UUID identifier
      - string, uuid4
      - string, uuid5
  - `errno` 0 | 400 | 401 | 403 | 404 | 405 | 409 | 422 | 500 | 501 | 502 | 503 | 504 | 520
  - `errmsg` string — Error message, empty when success

## Other responses

- `422` — Validation Error

## Changes

> 31 revisions in range; 1 could not be searched.

- **2025-04-17** `ff75f1135b23` — 1 warning
  - added the new `520.00` enum value to the `errno` response property for the response status `200`
- **2025-01-15** `a9bfbdf3d53b` — 1 info
  - removed the `520.00` enum value from the `errno` response property for the response status `200`

[Change history](https://skmtc.dev/memodb-io/apis/memobase-api/changes/api/v1/users/post.md)

---

[API](https://skmtc.dev/memodb-io/apis/memobase-api.md) · [All operations](https://skmtc.dev/memodb-io/apis/memobase-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/memodb-io/memobase-api/revisions/4543f130c8e0/schema)
