Base URL & environments
Environments
| Environment | Base URL | Purpose |
|---|---|---|
| Production | https://api.travelexe.com |
Live bookings and real supplier data |
| Development | http://localhost:5000 |
Local development and testing |
Never use production credentials in development. Real bookings and charges will occur.
Request format
All requests must include:
| Header | Value |
|---|---|
Content-Type |
application/json |
X-Api-Key |
Your API key |
Response format
All responses return application/json. A typical success response:
{
"status": "success",
"data": { ... }
}
Date format
All dates must be sent in ISO 8601 format:
2026-08-01T00:00:00
Currency codes
Pass standard 3-letter ISO 4217 currency codes:
USD, EUR, GBP, AED, INR, SAR
Nationality codes
Pass standard 2-letter ISO 3166-1 alpha-2 country codes:
IN, US, GB, AE, SA, PK