Authentication
Travosuite uses API keys for authentication. Include your API key in the Authorization header as a Bearer token.
curl https://api.travosuite.com/v1/flights/search \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json"
Flight Search API
Search flights across 400+ airlines in real-time. Returns available flights, prices, and availability.
Endpoint
POST /v1/flights/search
Request Parameters
| Parameter | Type | Description |
|---|---|---|
| from | string | Departure airport code (e.g., "JFK") |
| to | string | Arrival airport code (e.g., "LAX") |
| departure | date | Departure date (YYYY-MM-DD format) |
| passengers | number | Number of passengers (1-9) |
Example Response
{
"status": "success",
"data": {
"flights": [
{
"id": "FL123456",
"airline": "Delta",
"departure": "2025-04-01T08:00:00Z",
"arrival": "2025-04-01T11:30:00Z",
"duration": 210,
"stops": 0,
"price": {
"amount": 245.99,
"currency": "USD"
},
"seats_available": 5
}
]
}
}Error Handling
Travosuite returns standard HTTP status codes. Error responses include a detailed error message and code for debugging.
200 OK
Request succeeded
400 Bad Request
Invalid request parameters
401 Unauthorized
Missing or invalid API key
429 Too Many Requests
Rate limit exceeded
500 Internal Server Error
Server error (retry with exponential backoff)
SDKs & Libraries
Use our official SDKs for faster integration and better error handling.
Need Help?
Our developer support team is here to help. Check our FAQ, search documentation, or contact support.