API Docs
Need help?
Back to User Management

Create User

Registers a new user in the system.

Request Details

body Parameters

FieldTypeRequiredDescription
id
string
YesUnique identifier for the user
name
string
YesFull name of the user
email
string
YesEmail address of the user
password
string
YesUser's password (write-only)
createdAt
string
date-time
NoTimestamp when the user was created
updatedAt
string
date-time
NoTimestamp when the user was last updated
lastLogin
string
date-time
NoTimestamp of the user's last login
settings
object
UserSettings
NoUser-specific settings. See UserSettings schema.

Sample Request & Response

POST
/users
Registers a new user in the system.
Sample Request

Headers:

{
  "Content-Type": "application/json",
  "Authorization": "Bearer <YOUR_AUTH_TOKEN>"
}

Body:

{
  "name": "John Doe",
  "email": "john.doe@example.com",
  "password": "securepassword123"
}
Sample Response (201)
{
  "id": "usr_abc123xyz",
  "name": "John Doe",
  "email": "john.doe@example.com",
  "createdAt": "2024-07-24T10:00:00Z"
}