Authentication
OAuth 2.0 client credentials and bearer tokens.
Travelers APIs authenticate with an OAuth 2.0 client credentials grant. You exchange the client id and secret issued for your integration for a short-lived access token, then send that token as a bearer token on every request.
1. Request an access token
Token request
2. Call an API with the token
Authenticated request
With the SDK
The SDK handles the bearer token for you — pass it once at construction:
Client secrets are confidential. Store them in a secrets manager, never in source control, and rotate them on the schedule agreed with your program manager.