---
title: "Create a new user"
method: POST
path: "/v1/users"
tags: ["Users (User)"]
---

# Create a new user

`POST /v1/users`

## Request body

- CreateUserRequest
  - `username` string
  - `password` string, password, required — At least one number and one letter
  - `organization` string, required
  - `role` 'client' | 'admin', required

## Response `201`

Created

- object
  - `user` User
    - `id` string
    - `email` string, email
    - `name` string
    - `role` 'user' | 'admin'
  - `tokens` AuthTokens
    - `access` Token
      - `token` string
      - `expires` string, date-time
    - `refresh` Token
      - `token` string
      - `expires` string, date-time

## Other responses

- `400` — unresolved $ref

---

[API](https://skmtc.net/openloyalty/apis/loyalty-blockchain-api.md) · [All operations](https://skmtc.net/openloyalty/apis/loyalty-blockchain-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/openloyalty/loyalty-blockchain-api/revisions/e825144e9ffd/schema)
