This request allows you to get a new access_token if its lifetime has expired (unfortunately JWT does not support access_token invalidation).
Endpoint:
Method: POST
URL: https://auth.trackservice.cloud/refresh
Request:
{
"refresh_token": "tokenstring", // 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"