Configure UNS API (GraphQL) Access using Postman
2 min
this set of instructions explains how to access the litmus unify apis using an external tool postman open graphql apis with postman similar to rest apis, graphql apis often require authentication to ensure that users have the proper access rights to the data this document outlines the steps to obtain a token for a graphql api using the oauth 2 0 authentication method you will need to install and open postman https //www postman com/downloads/ to use postman to view the component version open postman or access the web version of postman in clients , click the new client name click the credentials tab click the copy icon for the client secret you will refer to this later open the postman application open your workspace in the left navigation menu click the new request icon click new click graphql for the new request, enter the following url https //\<litmus uns hostname>/mqtt/gql click the authorization tab for the type , select oauth 2 0 enter the following details for configure new token token name enter a name for the token grant type select client credentials access token url enter the following url https //\<litmus uns hostname>/auth/realms/standalone/protocol/openid connect/token client secret paste the client secret copied previously click get new access token and then proceed from the manage access tokens dialog, click use token the token is added to the request 6\ postman will return with a response that the authentication is complete