---
title: "Request APIs via Postman"
description: "Learn how to configure Postman to get an access token, use it as a Bearer Token, and create a combined request to call the Identity Manager API."
sidebar_position: 40
---

# Request APIs via Postman

This guide shows how to configure Postman to be able to request Identity Manager's API.

## Get an Access Token

Get an access token by proceeding as follows:

1. Launch Postman.
2. Create a new request by clicking on **+ New** then **Request**.

    ![Postman: New Request](/images/identitymanager/postman_newrequest.webp)

3. Fill in the fields and click on **Save to Identity Manager**.

    ![Postman: New Request Fields](/images/identitymanager/postman_requestfields.webp)

4. Fill in the authentication information as follows:

    ![Postman: Authentication](/images/identitymanager/postman_authentication.webp)

    - **Method**: POST
    - **URL**: `<URL IdentityManager>`/connect/token
    - **Body**:
        - **client_id**: `<OpenIdClient id>`@`<FQDN Usercube>`
        - **client_secret**: `<OpenIdClient secret>`
        - **scope**: usercube_api
        - **grant_type**: client_credentials

5. Click on **Send** and get the access token from the response body.

    ![Postman: Access Token](/images/identitymanager/postman_accesstoken.webp)

## Use an Access Token

Use an access token by proceeding as follows:

1. Create a new request in Postman.
2. Fill in the authorization information as follows:

    ![Postman: Authorization](/images/identitymanager/postman_authorization.webp)

    - **Method**: GET
    - **URL**: `<URL IdentityManager>`/`<URI of the API to call>`?api-version=1.0
    - **Authorization**:
        - **TYPE**: Bearer Token
        - **Token**: `<Access Token>`

3. Click on **Send** and get the result from the response body.

    ![Postman: Access Token Result](/images/identitymanager/postman_accesstokenresult.webp)

## Create a Combined Request

Create a combined request by proceeding as follows:

1. Create a new request in Postman.
2. Fill in the authorization information as follows:

    ![Postman: Authorization (Combined Request)](/images/identitymanager/postman_authorizationcombined.webp)

    - **Method**: GET
    - **URL**: `<URL IdentityManager>`/`<URI of the API to call>`?api-version=1.0
    - **Authorization**:
        - **TYPE**: OAuth 2.0
        - **Header Prefix**: Bearer

3. Click on **Get New Access Token** and fill in the fields as follows:

    ![Postman: New Access Token Fields (Combined Request)](/images/identitymanager/postman_newaccesstokencombined.webp)

    - **Token Name**: `<Token Name>`
    - **Grant Type**: Client Credentials
    - **Access Token URL**: `<URL IdentityManager>`/connect/token
    - **Client ID**: `<OpenIdClient id>`@`<FQDN Usercube>`

Do not replace `@` with its encoding.

    - **Client Secret**: `<OpenIdClient secret>`
    - **Scope**: usercube_api
    - **Client Authentication**: Send client credentials in body

4. Click on **Request Token** to get the token.

    ![Postman: Get Token (Combined Request)](/images/identitymanager/postman_gettokencombined.webp)

5. Click on **Use Token** and **Send** and get the result from the response body.

    ![Postman: Access Token Result (Combined Request)](/images/identitymanager/postman_accesstokenresult.webp)
