Skip to main content
Skip table of contents

Generating the API Key using Postman

Getting Started

  1. To begin, make sure that you have Postman installed. Open Postman and navigate to the Collections tab on the left-hand side.

  2. Click the New button.

  3. A new window will pop up asking you which type of connection you want to make. Select the HTTP option.

Obtaining a Bearer Token

  1. In the dropdown menu to the left of the text field, select the POST option.

  2. In the text field, enter the IP address followed by the port number 5000.

  3. Click Send. The image below provides an exmaple of what this may look like.

image-20240711-192333.png
  1. Navigate to the Body tab and select raw. Enter the following lines of code:

{

    "grant_type": "client_credentials",

    "auth_id": "LocalAdmin",

    "auth_secret": "DefaultSecret"

}

Note: Your Postman should now look like the following:

image-20240711-192606.png
  1. Lastly, click Send. You will then get the bearer token displayed at the bottom of the Postman app.

image-20240711-192659.png

You can now obtain and register the API key, which is permanent.

Obtaining the API Key

  1. Copy the access token that was obtained during the previous steps. For this example, the following is copied:

    • Ps1XYvR/B9nEGYxpyGuLiIhQ9ceL1+nPiilG4Pc8xP8=

  2. Under the URL, replace /token with /registerApiKey. In this case, the URL will look like the following:

    • http://10.22.74.129:5000/v3/auth/registerApiKey

  3. Navigate to the Authorization tab. In the Auth Type dropdown menu, select OAuth 2.0.

image-20240711-193647.png
  1. On the right-hand side, paste the bearer token previously obtained under Available Tokens.

image-20240711-193731.png
  1. Click Send. On the bottom of the Postman app, you will locate your API key.

image-20240711-193811.png

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.