Create
Create a new user in the system.
Endpoint
POST /users
Request Body
{
"name": "John Doe",
"email": "john@example.com",
"role": "admin"
}
Request Fields
| Field | Type | Required | Description |
|---|---|---|---|
| name | string | yes | Full name |
| string | yes | Email address | |
| role | string | no | admin 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"
}