Configure Your Postman Environment and Test Authentication

Pure1 Manage - REST API

Audience
Public
Product
Pure1
Source Type
Documentation

Note:

Postman is a third-party utility for building and using API's. You can find more information here: https://www.postman.com/

  1. Generate the text version of your SSL private key by typing the following command:
    
    openssl rsa -in pure1-test-private.pem -out private-key.txt
    
  2. Retrieve the text version of your public key with the following command:
    
    cat private-key.txt
    
  3. Open the pure1_template environment in Postman. NOTE: In order to see this template you will have had to downloaded the Pure1 Postman collection from Postmans’ API Network
  4. Fill out the api_private_key_file environment variable with the output of the command in step #2 above.
  5. Retrieve the Application ID for your application in the API Registration page of Pure1 Manage and paste it into the api_client_name environment variable.
  6. In Postman, open the Authentication section of the Pure1 REST API collection.
  7. (First time only) Select the INIT: Load Crypto Library for RS256 request and send it to retrieve a necessary cryptographic library.
  8. Select the Get an OAuth token request and send it. If your private key and App ID have been correctly set up in Postman, you should receive a successful response with an access_token field.

    Learn how to configure the Pure1 REST API Postman collection (https://bit.ly/Pure1PostmanExplore)