curl -X POST "https://panel.example.com/api/admin/users" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{
"username": "john.doe",
"email": "john.doe@example.com",
"password": "SecurePassword123!",
"language": "en",
"role": "user"
}'
{
"data": {
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"username": "john.doe",
"email": "john.doe@example.com",
"role": "user",
"createdAt": "2024-01-15T10:30:00Z"
}
}
Create a new user account
curl -X POST "https://panel.example.com/api/admin/users" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{
"username": "john.doe",
"email": "john.doe@example.com",
"password": "SecurePassword123!",
"language": "en",
"role": "user"
}'
{
"data": {
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"username": "john.doe",
"email": "john.doe@example.com",
"role": "user",
"createdAt": "2024-01-15T10:30:00Z"
}
}
Documentation Index
Fetch the complete documentation index at: https://mintlify.com/xyrapanel/panel/llms.txt
Use this file to discover all available pages before exploring further.
users:write permission.
DEFAULT_LANGUAGE env var or “en”)user or admincurl -X POST "https://panel.example.com/api/admin/users" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{
"username": "john.doe",
"email": "john.doe@example.com",
"password": "SecurePassword123!",
"language": "en",
"role": "user"
}'
{
"data": {
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"username": "john.doe",
"email": "john.doe@example.com",
"role": "user",
"createdAt": "2024-01-15T10:30:00Z"
}
}
role is “admin”, rootAdmin is set to true