Authentication
The data that you are planning to interact with, using the OPTIMO APIs, are exclusive and secure. So, you have to access them with some courtesy aka authentication, which is a simple task.
First, sign up to get your username and password. Then use your credentials to receive an access-token; you have to add this token to your every API request. Here is how to get that token using Postman. From here on, we will represent the base URL with two dots, .., so that no one feels discriminated.
Now remember, an access-token expires in 24 hours (you will get an error message once you have used an expired token on an API request, which we will cover later). Then you are at the mercy of the refreshToken which also expires in 7 days, unless it expires sooner if
Your password expires,
You change your password, or
You are locked out or set to inactive
at which point you have to get a new access-token using your credentials.
You can use your valid refresh-token to get a new access-token by sending a GET request at the endpoint ../api/v4.2/users/refresh-token.
Here you have to include the refresh-token as a header in your request.