To login to Moab, Users enter their email address and password and get back the unique identity and security token that allows them to make subsequent API calls.

Login

The API JSON POST must contain the unique, valid email address and password in the body of the request. The API response will contain the user’s unique identity and security token which will be used to make all subsequent API calls by the user.

RequestResponse
POST https://<moab url>/api/v1/userSuccess
{
“emailAddress”: “<email address>”,
“password”: “<password>”
}
{
“id”: <user id>,
“securityToken”: <security token>
}
Failure
{
“type”: “https://tools.ietf.org/html/rfc…”,
“title”: “Not Found”,
“status”: 404,
“traceId”: “|…”
}
Curl
curl -L -X POST ‘https://<moab url>/api/v1/UserLogin’ \
-H ‘Content-Type: application/json’ \
–data-raw ‘{
“emailAddress”: “<email address>”,
“password”: “<password>”
}’