FlightGPT.inPartner portalBecome a partner

Flights integration

FlightGPT calls your API when a traveller searches, and shows every flight you return with your price and a deeplink to book it. You can implement the request and response below — the FlightGPT Partner API — or send us your existing API documentation and we map it to this.

Search request

We send a POST with a JSON body to the URL you give us, with your authentication header. We send one leg per request; a return trip is two one-way searches today.

POST https://api.youragency.in/fgpt/flights/search
X-API-Key: <the key you issue us>
Content-Type: application/json

{
  "legs": [ { "from": "DEL", "to": "BOM", "date": "2026-10-20" } ],
  "adults": 2,
  "children": 1,
  "infants": 0,
  "cabin": "economy",
  "currency": "INR",
  "locale": "en-IN"
}
FieldMeaning
legsOrigin and destination as 3-letter IATA airport codes, date as YYYY-MM-DD.
adults1–9.
children0–9, aged 2–11.
infants0–9, under 2, never more than adults.
cabineconomy, premium_economy, business or first.
currencyAlways INR.

Search response

{
  "itineraries": [
    {
      "price": { "total": 18450, "currency": "INR", "per_adult": 6310, "per_child": 5830, "per_infant": 0, "refundable": false },
      "legs": [
        {
          "segments": [
            {
              "airline": "6E", "airline_name": "IndiGo", "flight_number": "2134",
              "operating_airline": "6E", "cabin": "economy",
              "from": "DEL", "to": "BOM",
              "depart": "2026-10-20T06:40:00", "arrive": "2026-10-20T08:55:00"
            }
          ]
        }
      ],
      "duration_min": 135,
      "baggage": { "checkin_kg": 15, "cabin_kg": 7 },
      "deeplink": "https://www.youragency.in/book?fare=6E2134-DEL-BOM-20OCT-Q1&pax=2-1-0"
    }
  ]
}
FieldMeaning
price.totalRequired. Total for all passengers, every mandatory charge included — see the pricing rules.
price.currencyRequired. INR. Other currencies are dropped.
price.refundableOptional. true / false; shown to the traveller.
legs[].segments[]Required. One segment per flight, in order. Airline codes are 2-letter IATA; times are local to each airport, YYYY-MM-DDTHH:MM:SS.
duration_minOptional but recommended: total journey minutes. Without it we compute from the times, which is wrong across time zones.
baggageOptional. Included check-in and cabin allowance per passenger.
deeplinkRequired. https link to your booking page for this exact fare and passenger mix.

Itineraries without a positive total, an INR price or an https deeplink are not shown. Flights whose first segment does not leave from the searched origin on the searched date are not shown either.

Deeplinks

The deeplink should open your booking or summary page with this flight already selected, not a fresh search. We add the click id to it (see conversion tracking); tell us if you need other tracking parameters. The traveller is sent through https://flightgpt.in/r/…, which records the click and redirects to your link.

Speed and caching

Also send us