curl --request POST \
--url https://api.easierprop.com/admin/admins \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"username": "trader1",
"password": "s3cret",
"role": "admin",
"max_accounts": 4
}
'{
"ok": true,
"data": {
"id": 1,
"username": "admin",
"role": "admin",
"max_accounts": 4
}
}Create a new admin user. Requires superadmin role.
curl --request POST \
--url https://api.easierprop.com/admin/admins \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"username": "trader1",
"password": "s3cret",
"role": "admin",
"max_accounts": 4
}
'{
"ok": true,
"data": {
"id": 1,
"username": "admin",
"role": "admin",
"max_accounts": 4
}
}JWT token obtained from POST /admin/login