# Use Postman to generate your code for GraphQL API calls

**URL:** <https://discuss.workflowgen.com/t/use-postman-to-generate-your-code-for-graphql-api-calls/1601>\
**Category:** GraphQL\
**Created:** [March 18, 2020, 3:35am UTC](https://discuss.workflowgen.com/t/use-postman-to-generate-your-code-for-graphql-api-calls/1601 "2020-03-18T03:35:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![eddy.daouk](https://yyz2.discourse-cdn.com/flex030/user_avatar/discuss.workflowgen.com/eddy.daouk/32/672_2.png) [@eddy.daouk](https://discuss.workflowgen.com/u/eddy.daouk)\
**Post date:** [March 18, 2020, 3:36am UTC](https://discuss.workflowgen.com/t/use-postman-to-generate-your-code-for-graphql-api-calls/1601/1 "2020-03-18T03:36:00Z")

</div>

Here is how you can use Postman to help you develop your GraphQL API calls, which provides certain benefits:

- Faster development of your application, so there are no headaches on how to code your POST requests, since everything is generated.

- The username and password are already converted to a base64 encoded string, so there’s no need to store the username and password in a configuration file. Instead, you just store the the converted string, which provides extra security.

This example uses the POST method instead of GET to add an extra layer of security for the call.

1. Install [Postman](https://www.postman.com/).

2. Open Postman and create a new request:

3. On the **Authorization** tab, set **TYPE** to **Basic Auth** and then enter the authorized user’s username and password.

4. On the **Body** tab, select **GraphQL** and enter your query:

5. Click the **Send** button to test your query. If it’s successful, you should see the `200 OK` status and the returned JSON result at the bottom of the page.

6. Generate the code by clicking on the Code link and choosing your preferred programming language ( **Java - Unirest** in this example).
