curl --request POST \
--url https://storekit.samarthh.me/v1/auth/admin/register \
--header 'Content-Type: application/json' \
--data '
{
"email": "[email protected]",
"name": "Admin User"
}
'Register a new admin. Admin data is stored temporarily in Redis. OTP is sent to email. Admin must verify OTP to complete registration with ADMIN role.
curl --request POST \
--url https://storekit.samarthh.me/v1/auth/admin/register \
--header 'Content-Type: application/json' \
--data '
{
"email": "[email protected]",
"name": "Admin User"
}
'The body is of type object.
Successful response