Obtaining an access token by using Postman

Hitachi iQ Studio REST API Reference Guide

Version
1.1.x
File Size
4495 KB
Audience
anonymous
Part Number
MK-26HIQS002-00
ft:lastEdition
2026-09-15

Obtain an access token by using Postman's authorization code flow.

  1. Open Postman, and then create a new request or open an existing collection. Get in Postman

  2. On the Authorization tab, configure OAuth 2.0 authentication:

    1. From Type, select OAuth 2.0.

    2. Configure the following settings.

      Field Value
      Grant type Authorization Code
      Callback URL https://oauth.pstmn.io/v1/callback
      Authorize using browser Selected
      Auth URL https://<KEYCLOAK_HOSTNAME>/realms/<REALM_NAME>/protocol/openid-connect/auth
      Access token URL https://<KEYCLOAK_HOSTNAME>/realms/<REALM_NAME>/protocol/openid-connect/token
      Client ID genai-portal
      Scope openid email

    Where:

    • KEYCLOAK_HOSTNAME: Fully qualified domain name (FQDN) of your deployed Keycloak instance
    • REALM_NAME: Realm for your iQ Studio users

    Examples:

  3. Select Get New Access Token.

    Postman opens a browser window for authentication. Token Request

  4. On the Keycloak login page, enter your credentials.

    After Keycloak authenticates you, it redirects you to Postman.

  5. Select Use Token to apply the access token to your request. Manage Access Tokens

Postman adds the access token to the Authorization header as a bearer token. If Postman does nt add the header automatically, add it manually.

NOTE: Access tokens expire. Request a new token when the current token expires.