Create Flight Search
agent-data call bd63936c-8611-45a8-8ad8-083aa4c51aa9 search-flights --date <date> [--sort <sort>] [--cabin <cabin>] [--limit <limit>] [--compact <compact>] [--max_stops <max_stops>] [--passengers <passengers>] [--request_id <request_id>] --origin_iata <origin_iata> [--return_date <return_date>] --destination_iata <destination_iata>curl -X POST "https://d1vrh75868.execute-api.us-east-2.amazonaws.com/api/v1/flight-searches" -H "Authorization: Bearer <YOUR_API_KEY>" -H "Content-Type: application/json"Kick off an asynchronous one-way or round-trip fare search (Skiplagged).
Request Body required
Section titled “Request Body required ”object
Specify the outbound travel date to search. Send an ISO 8601 calendar date in YYYY-MM-DD format. This value is required and is part of the cache and deduplication identity for the search.
Choose how the API should order offers in the returned result set. Send one of the supported enum values: price, duration, departure, or stops.
Choose the cabin class to request for the priced itinerary. Send one of the documented enum values, such as economy, premium_economy, business, or first.
Cap how many priced offers the API should return in the completed search result. Send an integer from 1 through 30. Values outside that range fail validation with 422.
Set this flag to request the compact response mode supported by the search workflow. Send a boolean value. The request model accepts the flag today, but downstream response shaping should be described conservatively unless separate evidence confirms a material payload difference.
Specify how many passengers to price in the search request. Send an integer from 1 through 9. Values outside that range fail validation with 422.
Specify the 3-letter IATA code for the departure airport. Input is case-insensitive in practice and is normalized before the upstream search request is built. Send an airport code, not a city code or free-text location.
Specify the 3-letter IATA code for the arrival airport. Input is case-insensitive in practice and is normalized before the upstream search request is built. Send an airport code, not a city code or free-text location.
Responses
Section titled “ Responses ”Successful Response
object
Public-facing response for POST /flight-searches.
Extends FlightSearchJob with the operation pointer used by long-polling clients (operation_id/operation_url) and an inline error_message slot for synchronous failures during job creation.
object
object
object
object
Example
{ "data": { "status": "pending" }}Validation Error
object
object
object
Example generated
{ "detail": [ { "ctx": {}, "loc": [ "example" ], "msg": "example", "type": "example", "input": "example" } ]}