Note: See the API Explorer for full details on each method.

Members


GET /v2/me

Returns the member record associated with the provided access token.

Auth Required
Yes / Access Token
Request
curl -v -H "Authorization:Bearer {ACCESS-TOKEN}" -X GET "http://api.traxo.com/v2/me"
Response
Errors / Codes
not_found

Trips


GET /v2/trips

Returns details about a given trip.

Auth Required
Yes / Access Token
Request
curl -v -H "Authorization:Bearer {ACCESS-TOKEN}" -X GET "http://api.traxo.com/v2/trips/{TRIP-ID}"
Response
Errors / Codes
invalid_request

GET /v2/trips/current

Returns zero or one trip, which is a) the trip that is currently being traveled, b) the closest past or future trip, or c) the closest future trip.

Auth Required
Yes / Access Token
Request
curl -v -H "Authorization:Bearer {ACCESS-TOKEN}" -X GET "http://api.traxo.com/v2/trips/current"
Response
Errors / Codes
not_found

GET /v2/trips/upcoming

Returns a collection of upcoming trips for the current user sorted in increasing date/time order.

Auth Required
Yes / Access Token
Request
curl -v -H "Authorization:Bearer {ACCESS-TOKEN}" -X GET "http://api.traxo.com/v2/trips/upcoming"
Response
[ ... Trip Object(s) ... ]
Errors / Codes
not_found, invalid_request

GET /v2/trips/past

Returns a collection of past trips for the current user sorted in decreasing date/time order.

Auth Required
Yes / Access Token
Request
curl -v -H "Authorization:Bearer {ACCESS-TOKEN}" -X GET "http://api.traxo.com/v2/trip/past"
Response
[ ... Trip Object(s) ... ]
Errors / Codes
not_found, invalid_request

Segments


Locations


GET /v2/locations/cities

Get a collection of cities

Auth Required
Yes / Client Credentials
Request
curl -v -H "Authorization:Bearer {ACCESS-TOKEN}" -X GET "http://api.traxo.com/v2/locations/cities?q=Dallas, Texas, US"
Errors / Codes
invalid_request

Accounts


GET /v2/accounts

Get a collection of travel accounts

Auth Required
Yes / Access Token
Request
curl -v -H "Authorization:Bearer {ACCESS-TOKEN}" -X GET "http://api.traxo.com/v2/accounts"
Response
Errors / Codes
not_found