Postman Tutorial

Generate Access Token

If you do not already have a consumer key and secret, please contact your Dun & Bradstreet representative to obtain one. For more information on D&B Direct+ API authentication, see the Authentication page.

  1. Install Postman.
  2. For purposes of this tutorial, import the following collections:


  3. Generate access token:

    1. Select Authentication - Access Token
    2. Click Authorization tab.
    3. In Type field, select Basic Auth.
    4. In Username field, copy your Consumer Key.
    5. In Password field, copy your Consumer Secret.
    6. Press Send.
  4. Generate Access Token Request

    Generate Access Token Response

The collections provided have been configured to use environment variable; therefore, whenever the token is generated, it is placed in the variable and the variable is used by all APIs. The token does not need to be manually copied to the header in each API.

Use Data API

  1. In Postman, open the D&B Direct+ Data Products collection.
  2. Select an API.
  3. Verify the API Request Type and URL, changing parameters if desired.

  4. Verify the token in Headers section (Authorization: Bearer <MyToken>)
  5. Data API Request

  1. Select Send. Postman displays Response body.

    Data API response

Use Criteria Search API

  1. In Postman, open the D&B Direct+ Search collection.
  2. From collection, select Criteria Search.
  3. Select the Body tab.
  4. Review the request parameters.

  5. Also verify the token in Headers section (Authorization: Bearer <MyToken>)
  6. Criteria Search API Request

  1. Select Send. Postman displays Response body.

    Criteria Search API Response