How to obtain the token using Client Credentials Flow via Postman?


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:

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

Have more questions? Submit a request



Please sign in to leave a comment.