Authorization #
This request allows you to authorize your account using your username, password and API Key (those 3 credentials are mandatory in order to use our API system). Two tokens are returned in response to successful authorization. One access_token is used for subsequent authorizations, and the other refresh_token is used to get a new access_token in case it expired.
These tokens are Jason Web Tokes (JWT) and are fully compliant with this standard.
Endpoint:
Method: POST
URL: https://auth.trackservice.cloud/login
Request:
{
"username": "stringvalue", // Required
"password": "stringvalue", // Required
"api-key": "stringvalue", // Required
}
Response
Successful Response
httpStatus: 200
"status": 0,
"message": "",
"access_token": "tokenstring",
"refresh_token": "tokenstring"
Error response
httpStatus: 200
"status": Error Code,
"message": "error message"