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

# Create User

`POST /users`

Creates a new user in both Auth0 and DAL with validation

## Headers

- `tenant-id` string

## Request body

- CreateUserRequest — Request body for creating a new user
  - `email` string, required — User email address
  - `password` string, required — User password
  - `firstName` string, required — User first name
  - `lastName` string, required — User last name

## Response `201`

User created successfully

- UserCreationResponse
  - `id` string
  - `auth0UserId` string
  - `email` string
  - `firstName` string
  - `lastName` string
  - `status` string

## Other responses

- `400` — Bad request - Invalid request data or missing required fields
- `401` — Authentication required - Valid authentication token is missing or invalid
- `403` — Forbidden - User does not have the required permissions to create users
- `409` — Conflict - A user with the specified email address already exists
- `500` — Internal server error - An unexpected error occurred while processing the request

---

[API](https://skmtc.net/certifyos/apis/certify-api-layer.md) · [All operations](https://skmtc.net/certifyos/apis/certify-api-layer/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/certifyos/certify-api-layer/revisions/3d27e9019c7b/schema)
