# Travel API Brex Travel External API. Version: 1.0 ## Servers Production ``` https://api.brex.com ``` Staging (Note: This is not a sandbox. It will not work with customer tokens.) ``` https://api-staging.brex.com ``` ## Security ### OAuth2 OAuth2 security scheme Type: oauth2 ### oAuth2ClientCredentials Refer to [these](https://developer.brex.com/docs/onboarding_examples/) docs on how to use client credentials Type: oauth2 ## Download OpenAPI description [Travel API](https://developer.brex.com/_bundle/openapi/travel_api.yaml) ## Trips Endpoints for getting trip data. ### List trips - [GET /v1/trips](https://developer.brex.com/openapi/travel_api/trips/listtrips.md): Lists trips according to the filters passed in the query string. ### Get trip - [GET /v1/trips/{trip_id}](https://developer.brex.com/openapi/travel_api/trips/gettrip.md): Retrieves a trip by ID. ### List trip bookings - [GET /v1/trips/{trip_id}/bookings](https://developer.brex.com/openapi/travel_api/trips/listtripbookings.md): Lists the bookings within a trip. ### Get booking - [GET /v1/trips/{trip_id}/bookings/{booking_id}](https://developer.brex.com/openapi/travel_api/trips/getbooking.md): Retrieves a booking by trip and booking ID.