post https://api-smartflo.tatateleservices.com/v1/auth/refresh
This API allows you to refresh an authentication token.
Refreshing a Token
The short-lived tokens have a lifetime of 60 minutes, after which you will have to request a refresh token, like in the example shown below.
curl --request POST \
--url https://api-smartflo.tatateleservices.com/v1/auth/refresh \
--header 'Accept: application/json' \
--header 'Authorization: yourtokengoeshere'
Success Response
{
"success": true,
"access_token": "eyJ0eXAiOiJKV1XXXXXXg5cWP0",
"token_type": "bearer",
"expires_in": 3600,
"number_of_days_left": 0
}
Failed Respone
{
"success": false,
"message": "Invalid token provided"
}