Admin/Authentication
Admin authentication.
Login
POST
https://switch-api-staging.herokuapp.com/admin/login
Authenticates admin and returns a valid token used for session validation.
Headers
Name
Type
Description
SWI-CS
string
Payload checksum
SWI-CID
string
Client ID
Request Body
Name
Type
Description
string
admin email
password
string
admin password
Logout
POST
https://switch-api-staging.herokuapp.com/admin/logout
Invalidates the admin's session token.
Headers
Name
Type
Description
SWI-CID
string
Client ID
Authorization
string
Format is Bearer token
Last updated
Was this helpful?