Security
A token
is meant to expire in a certain time window and should be refreshed before or after it’s expiring date, using the provided refresh_token
.
Login
Use your user’s login credentials.
Request
Url: https://demo.unitebot.eu/api/security/login
Method: POST
JSON Body:
{ "email": "...", "password": "..." }
Success Response
{ "expire_in": 86400, "refresh_token": "...", "token": "..." }
RefreshToken
A refresh_token
can be used only one time.
Request
Url: https://demo.unitebot.eu/api/security/refresh-token
Method: POST
JSON Body:
{ "refresh_token": "..." }
Success Response
{ "expire_in": 86400, "refresh_token": "...", "token": "..." }