REST API Token Credentials
Use one of two recommended options to construct your REST API sessionless token credentials.
Prerequisites
Get your Sabre credentials from your Sabre account manager.
Construct your token credentials using a Base64-encoding tool
Access Token v2
The User ID is represented by EPR credentials, and is passed by an 'Authorization' header.
Learn how to base64-encode your string step-by-step using a base64-encoding tool:
Steps | Description | Format |
---|---|---|
Step 1: Build your User ID. |
Build your User ID using your: 1) EPR, 2) PCC (a.k.a. Group), 3) Domain ("AA" for Travel Network customers, or your airline code for Airline Solutions customers, e.g. "LA"). Separate each value with a colon. Note: Always use the static value of V1, regardless of the version of authentication you are using. |
V1:userid:group:domain |
Step 2: Base64 encode your User ID. | Use a base64 encoding tool to encode your User ID from step 1. | VjE6dXNlcmlkOmdyb3VwOmRvbWFpbg== |
Step 3: Base64 encode your password. | Use a base64 encoding tool to encode your Sabre APIs password. | MTIzNDU= |
Step 4: Make a concatenated string. | Use your base64-encoded User ID and base64-encoded password from steps 3 & 4, and separate with a colon to make a concatenated string. | VjE6dXNlcmlkOmdyb3VwOmRvbWFpbg==:MTIzNDU= |
Step 5: Encode a single base64 encoded string. | Base64-encode your concatenated string from step 4 into a single base64 encoded string. | VmpFNmRYTmxjbWxrT21keWIzVndPbVJ2YldGcGJnPT06TVRJek5EVT0= |
Step 6: Verify your new token is valid. | You can use a third-party client such as PostMan to verify your token is valid. | N/A |
Access Token v3
The Client ID represents the application claiming access to Sabre resources on behalf of the resource owner (EPR). Contact your Account Manager to acquire your application Client ID and Client Secret pair.
In this scenario, EPR credentials, User ID, and User Password are passed in the request body.
Learn how to base64-encode your string step-by-step using a base64-encoding tool:
Steps | Description | Format |
---|---|---|
Step 1: Build your Client ID. | Build your "Authorization" header following the standard basic authentication pattern. | clientId:clientSecret |
Step 2: Base64-encode your clientId/clientSecret pair |
Use a base64 encoding tool to encode your Client ID from step 1. | Y2xpZW50SWQ6Y2xpZW50U2VjcmV0 |
What's next? Get a Token.
Your security token gets you connected to Sabre APIs.