KeyFlight PNR Converter

v1.0.0
io.keyflight/pnr Checked 1 day ago Published 1 month ago

Decode Amadeus, Sabre, Galileo and Worldspan PNRs into itineraries, JSON and PRO ticket PDFs.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

decode_pnr Decode a PNR

Decode a raw PNR into a readable itinerary (text) and structured JSON: passengers, flights, airports, terminals, times, flight duration, airline locators. Each decode with flights counts towards the monthly limit of the KeyFlight subscription, as in the PNR API.

ParameterTypeDescription
text *stringThe PNR as shown by the GDS (Amadeus, Sabre, Galileo/Apollo, Worldspan), up to 20000 characters.
date_formatstring"short" (18 Jun 2026) or "numeric" (18.06.2026).
time_formatstring24 or 12 hour time. Default: 24.
viewstringLayout of the itinerary text. Default: table.

make_ticket Make a PRO ticket PDF

Make a PRO e-ticket PDF (Expedia style: PNR, airline logos, class, optional price) from a raw PNR and return a link to the PDF. Passenger names and the PNR code come from the text unless given here. Included in the KeyFlight subscription.

ParameterTypeDescription
text *stringThe PNR as shown by the GDS (Amadeus, Sabre, Galileo/Apollo, Worldspan), up to 20000 characters.
booking_classstringDefault: the cabin of the first flight's booking class.
currencystringCurrency next to the price, e.g. "USD", "€". Default: "$".
date_formatstring"short" or "numeric".
logostringLogo in the ticket header. Default: none.
passengersarrayPassenger names as on the ticket, e.g. "SMITH/JOHN MR". Default: the names in the PNR.
pnrstringBooking code printed on the ticket, 5–8 letters and digits. Default: the one in the text, or a random one.
pricestringTotal price printed on the ticket, e.g. "1200.50". Default: no price on the ticket.
time_formatstring24 or 12 hour time. Default: 24.