How to obtain the token using Client Credentials Flow in Postman?
In order to generate the token, the POST request has to be performed. To perform the request, please follow the steps below:
Open Postman > File > Import... > Raw text and insert the following cURL code (Vantage region, client ID and secret need to be substituted accordingly), finish import:
curl --location --request POST "https://vantage-<region>.abbyy.com/auth2/connect/token" \
--data-urlencode "client_id=client_id" \
--data-urlencode "client_secret=client_secret" \
--data-urlencode "grant_type=client_credentials" \
--data-urlencode "scope=openid permissions global.wildcard"
Go to Vantage > Configuration > Public API Client.
- Select/create a client.
- Enable the Allow the client credentials flow option and select the Role that will be granted to the application:
- Copy and paste the Client Secret and Client ID into the newly imported Postman request and make sure that grant_type is specified as client_credentials.
- Send the request in order to obtain the access token.
- The token will be valid for the next 24 hours. After expiration, it is necessary to reobtain the token by re-sending the request.