---
title: "Add user"
method: POST
path: "/users"
tags: ["Users"]
---

# Add user

`POST /users`

## Request

- Base URL: `https://api.c1st.com/api`
- URL: `https://api.c1st.com/api/users`
- Auth: HTTP bearer

## Request body

- SetUser
  - `content` User
    - `id` integer
    - `name` string
    - `email` string, email, nullable
    - `phone` string, nullable: Phone number in E.164 format. Numbers without a country code are interpreted using the store's country.
    - `amount` integer
    - `shopuser` 0 | 1: User is used for selling stuff
    - `apiuser` 0 | 1: Api user that cannot login.
    - `hasPasscode` integer: Whether or not the user is protected by a (4 digit) passcode
    - `hasPassword` integer: Whether or not the user is protected by a password
    - `hasPasskey` boolean: Whether or not the user has a passkey registered
    - `apitoken` string, nullable
    - `restrictions` UserRestriction[], nullable
    - `deleted` integer: 1 if the user is a deleted user, 0 otherwise
    - `mainuser` number: Whether or not the user is the store's main user. This is set on store creation and cannot be changed.
    - `showincalendar` integer, nullable: Whether or not the user should be shown in the calendar.
    - `newauthuser` integer, nullable: Whether or not the user is using the new auth system.
    - `require_mfa` integer
    - `email_verified_at` string, nullable

## Response `200`

Ok

- UserRespond
  - `content` User
    - `id` integer
    - `name` string
    - `email` string, email, nullable
    - `phone` string, nullable: Phone number in E.164 format. Numbers without a country code are interpreted using the store's country.
    - `amount` integer
    - `shopuser` 0 | 1: User is used for selling stuff
    - `apiuser` 0 | 1: Api user that cannot login.
    - `hasPasscode` integer: Whether or not the user is protected by a (4 digit) passcode
    - `hasPassword` integer: Whether or not the user is protected by a password
    - `hasPasskey` boolean: Whether or not the user has a passkey registered
    - `apitoken` string, nullable
    - `restrictions` UserRestriction[], nullable
    - `deleted` integer: 1 if the user is a deleted user, 0 otherwise
    - `mainuser` number: Whether or not the user is the store's main user. This is set on store creation and cannot be changed.
    - `showincalendar` integer, nullable: Whether or not the user should be shown in the calendar.
    - `newauthuser` integer, nullable: Whether or not the user is using the new auth system.
    - `require_mfa` integer
    - `email_verified_at` string, nullable
  - `apitoken` string, nullable

---

[API](https://skmtc.dev/c1st/apis/customers-1st-api.md) - [All operations](https://skmtc.dev/c1st/apis/customers-1st-api/llms.txt) - [OpenAPI document](https://skmtc.dev/c1st/apis/customers-1st-api/revisions/4250bb326f2a?raw)
