REST API Postman Requests
Learn how to to get a sessionless token using PostMan, and use the token to call a given REST API.
Prerequisites
You have constructed your token credentials according to the How to get a token instructions.
Get a token
Once you have constructed your token credentials, you're ready to get a token using Postman.
Here are the values we used in this example:
URI | POST https://api-crt.cert.havail.sabre.com/v2/auth/token |
Headers | Authorization: Basic YOURBASE64ENCODEDSTRINGGOESHERE Content-Type: application/x-www-form-urlencoded grant_type: client_credentials |
Use the token (without a payload)
The following demonstrates an example request without a payload to call the Travel Theme Lookup API. NOTE the token is specified in the Headers field.
Here are the values we used in this example:
Headers | Authorization: Bearer <YOURTOKENGOESHERE> |
Use the token (with a payload)
The following demonstrates an example request with a payload to call the Bargain Finder Max API. NOTE both the token and Content-Type are specified in the Headers field.
Here are the values we used in this example:
Headers | Authorization: Bearer <YOURTOKENGOESHERE> Content-Type: application/json |
Note: The request payload for the Bargain Finder Max API is specified in the Body field. You must indicate a value of application/JSON in the drop-down menu if not already selected.