---
title: Configure UNS API (GraphQL) Access using Postman
slug: unify/configure-uns-api-graphql-access-using-postman
docTags: 
createdAt: 2024-09-10T19:24:40.434Z
---

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.&#x20;

You will need to install and open [Postman](https://www.postman.com/downloads/).&#x20;

**To use Postman to view the component version:**

1. Open Postman or access the web version of Postman.&#x20;
2. In *Clients*, click the new client name.&#x20;
3. Click the **Credentials&#x20;**&#x74;ab.&#x20;
4. Click the **Copy&#x20;**&#x69;con for the *Client secret*. You will refer to this later.
5. Open the Postman application.&#x20;
6.
7.
8. Open your workspace in the left-navigation menu.&#x20;
9.
10.
11. Click the **New Request&#x20;**&#x69;con.&#x20;
12.
13.
14. Click **New**.&#x20;
15.
16.
17. Click **GraphQL**.&#x20;
18.
19.
20. For the new request, enter the following URL: `https://<Litmus UNS hostname>/mqtt/gql`.&#x20;
21.
22.
23. Click the **Authorization&#x20;**&#x74;ab.&#x20;
24. For the *Type*, select **OAuth 2.0**.&#x20;
25. Enter the following details for *Configure New Token*.&#x20;
26. **Token Name**: Enter a name for the token.&#x20;
27. **Grant type**: Select **Client Credentials**.&#x20;
28. **Access Token URL**: Enter the following URL: `https://<Litmus UNS hostname>/auth/realms/standalone/protocol/openid-connect/token`
29. **Client secret**: Paste the client secret copied previously.&#x20;
30. Click **Get New Access Token&#x20;**&#x61;nd then **Proceed**.&#x20;
31. From the *Manage Access Tokens* dialog, click **Use Token**.&#x20;
    The token is added to the request.&#x20;

::Image[]{src="https://api.archbee.com/api/optimize/SSUUxKZUk9bFTEPNn_6Zo/bbapHbxMkArVOskCcoaEa_image.png" size="78" width="1654" height="790" position="center" darkWidth="1654" darkHeight="790" showCaption="false"}

6\.   Postman will return with a response that the authentication is complete.



#

&#x20;

