REST APIs: PostMan requests

Learn how to to get a sessionless token using PostMan, and use the token to call a given REST API.

Topics

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
Get a token

See also: the How to get a token page for detailed instructions.

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 (without a payload) image

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
Use the token (with a payload)

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.

application/json image

Related links


Frequently asked questions (FAQs)

Why don't I have access to an API that is part of my contract?
Verify you are using the correct PCC and EPR in your token credentials. If you are not using the correct PCC in your token credentials to a given API, you won't have access to your agency's specific subset of Sabre APIs. If you are using the correct credentials, contact your Sabre account manager. See also: How to get a token.

Why can't I access the Bargain Finder Max API?
The Bargain Finder Max API requires customers to sign a special amendment. Contact your Sabre account manager for details. Or take the REST API for a test spin in API Explorer.


Stack Overflow

Ask a question with the Stack Overflow community.
Ask Questions