Note:
Postman is a third-party utility for building and using API's. You can find more information here: https://www.postman.com/
-
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 -
Retrieve the text version of your public key with the following command:
cat private-key.txt - 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
- Fill out the api_private_key_file environment variable with the output of the command in step #2 above.
- 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.
- In Postman, open the Authentication section of the Pure1 REST API collection.
- (First time only) Select the INIT: Load Crypto Library for RS256 request and send it to retrieve a necessary cryptographic library.
-
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)