How to obtain the token using Client Credentials Flow via Postman

To generate the token, you must first perform the POST request:

  1. 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"

     

  2. Go to Vantage > Configuration > Public API Client.
  3. Select/create a client.
  4. Enable the Allow the client credentials flow option and select the Role that will be granted to the application:
  5. 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.
  6. Send the request in order to obtain the access token.
  7. The token will be valid for the next 24 hours. After expiration, it is necessary to reobtain the token by re-sending the request.

Was this article helpful?

0 out of 0 found this helpful

Have more questions? Submit a request