Skip to main content

Create

Create a new user in the system.

Endpoint

POST /users

Request Body

{
"name": "John Doe",
"email": "john@example.com",
"role": "admin"
}

Request Fields

FieldTypeRequiredDescription
namestringyesFull name
emailstringyesEmail address
rolestringnoadmin or user

Response

Status 200 Created

{
"id": "usr_12345",
"name": "John Doe",
"email": "john@example.com",
"role": "admin",
"created_at": "2026-01-15T10:20:30Z"
}