Import the Postman Collection to be able to fetch your instance and request a decision.
IMPORTANT: Please make sure your Postman Environment is setup with Globals and Locals.
Importing the Collection by selecting Import in the “My workspace” header.
Select the file from the location on your device and Import the Collection.
IMPORTANT: All the Elements will be imported during this process.
Authentication
Authentication involves sending a verified username and password with your request. In the request Authorisation tab, select Bearer Token from the Type dropdown list.
Enter your Connect API username and password in the Username and Password fields. For extra security, store these in variables.
Example below:
- Click on the “Authenticate” tab and perform the below checks before you hit the “Send” the request for successful authentication:
- Authorization:
- Type – Bearer Token
- Token – {{token}}
- Body:
{
"username": "", [Connect API Username]
"password": "" [Connect API Password]
}
- Tests:
var jsonData = JSON.parse(responseBody);
pm.globals.set("token", jsonData.token);
- Once the above checks are complete, hit the “Send” button to generate your token.