Step 2 - Getting Started with Postman

5min

Overview

 In this document, you will learn how to use Postman to make requests to the ZEN Master API. We will cover these topics:

  • Download the API definition
  • Import the API definition
  • Set collection variables
  • Send a GET request for Sources

As an API user, you will have admin access in ZEN Master, allowing you to view objects and update all settings available to administrators.

Download the API definition

You can download a copy of the ZEN Master API definition in both YAML and JSON format. Either format will work in Postman.

1

Login to the Zixi Customer Portal.

2

In the left navigation, select Documentation.

3

Select the By Type tab, and then select ZEN Master API.

Document image

4

To download the JSON file:

  • Open the ZEN Master API HTML Reference.

    Document image
    
  • At the top of the API Reference, click the Download button. A JSON file will be downloaded to your computer.

    Document image
    
5

To download the YAML file:

  • In the Zixi Customer Portal, locate the ZEN Master API YAML file.
  • Click the Download button. A zipped YAML file will be downloaded to your computer.
Document image


Import the API definition

In Postman, you can import an API definition using either the YAML or the JSON format.

1

In a web browser, navigate to https://www.postman.com/

2

Sign in or create an account.

3

In the left sidebar, click Import.

Document image

4

Select your copy of either the YAML or the JSON API definition file.

5

Choose to import the definition as a collection and click Import.

Document image


Set collection variables

Next, you will provide values for the ZEN Master API collection variables.

1

Return to the Postman UI.

2

In the left sidebar, select the Zixi ZEN Master API collection, and then select Variables. Here, you’ll define collection variables for base URL and API Key.

Document image

3

For the baseUrl variable, enter the ZEN Master API base URL: https://api.zen.zixi.com/v2

Document image

4

Next, create a variable named apiKey.

5

If you don’t already have a ZEN Master API authentication key, see the Getting Started with Authentication document.

6

Paste the ZEN Master API Key value that you created in the Zixi ZEN Master dashboard. Paste the same value into the Initial value and the Current value fields.

Document image

7

Click Save. Your variables are ready to use with any request within the collection.

Send a GET request for Sources

Next, you are ready to send a request to the ZEN Master API.

1

Return to Postman.

2

In the left sidebar, select the Zixi ZEN Master API collection, and expand the sources folder.

3

Select GET list Sources.

Document image

4

For the GET URL endpoint, remove all of the query parameters.

5

Click Send.

Document image

6

You should see response data with an array of sources.

Document image

7

For a complete list of request paths, see the Zixi ZEN Master API Reference.