Admin/Authentication
Admin authentication.
STAGING_URL: https://switchapi3.azurewebsites.net
LIVE_URL: https://switchapi.azurewebsites.netLogin
Headers
Name
Type
Description
Request Body
Name
Type
Description
{
"message": "Admin login successful",
"data": {
"auth_token": "eyJhbGciOiJIUzI1NiJ9.eyJhZG1pbl9pZCI6MTEsImV4cCI6MTU2Mjc2NTE3MSwiY29udGV4dCI6ImFkbWluIn0.gfGI47XH148fTfYMZSmcgYboDFpzOmPbWdPj2hkn1kY",
"admin": {
"id": 11,
"email": "cs@switch.ng",
"role": "customer_success",
"disabled": false,
"has_changed_password": true,
"password_expired": false
}
}
}{
"message": "Invalid login details",
"locked": false
}Logout
Headers
Name
Type
Description
Last updated
Was this helpful?