Authenticating APIs
Sterling Intelligent Promising supports OAuth2 authentication method. To access APIs, you must generate an access token, which will be used to invoke APIs.
About this task
To access APIs offered in Sterling Intelligent Promising, users must obtain an access token and use it to make an API request. Each tenant associate to an environment whether its Developer toolkit, pre-production, or non-production requires its own access token.
Each access token that is provided is valid for the next 12 hours. After this time, you must generate a new access token. To encourage the efficient use of an access token, the system allows up to 1000 access token generated per hour. Beyond this limit, a user is expected to receive a rate-limit reached error.
As a best practice, the connecting application is encouraged to store the access token in a local cache so that it can be reused until expiry. On expiry of the token, the application client may request a new token and follow the same caching procedure.
A well managed token system is critical to ensure zero disruption to your service. It is recommended that you have a centralized token management service, which performs a routine token renewal so that the consuming application can share the token information for accessing APIs. Prior to the token expiry, the system must make ahead a token request within 30 minutes from expiry to ensure that downstream clients have sufficient time to switch to the new token.
For more information about best practices, see API best practices.
Procedure
The following procedure provides an example of how to obtain an authentication token by using an API client.