Skip to main content

Create a user

Enterprise Only

This endpoint is only available in the Enterprise package and requires the authenticated user to be a Super Admin.

Method: POST

URL: https://example.com/<MIXPOST_CORE_PATH>/api/panel/users

Authorization: Bearer <token>

Body:

{
"name": "John Doe",
"email": "john@example.com",
"password": "securepassword123",
"password_confirmation": "securepassword123",
"is_admin": false
}
KeyFormatRequiredDescription
namestringrequiredUser's full name (max 255 characters)
emailstringrequiredUser's email address (must be unique)
passwordstringrequiredUser's password
password_confirmationstringrequiredPassword confirmation
is_adminbooleanrequiredWhether the user should be a Super Admin

Response:

{
"id": 2,
"name": "John Doe",
"email": "john@example.com",
"is_admin": false,
"settings": {},
"email_verified_at": "Jan 15, 2025 10:30 AM",
"created_at": "Jan 15, 2025 10:30 AM"
}