KeyFlight PNR Converter
v1.0.0Decode 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.
| Parameter | Type | Description |
|---|---|---|
text * | string | The PNR as shown by the GDS (Amadeus, Sabre, Galileo/Apollo, Worldspan), up to 20000 characters. |
date_format | string | "short" (18 Jun 2026) or "numeric" (18.06.2026). |
time_format | string | 24 or 12 hour time. Default: 24. |
view | string | Layout 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.
| Parameter | Type | Description |
|---|---|---|
text * | string | The PNR as shown by the GDS (Amadeus, Sabre, Galileo/Apollo, Worldspan), up to 20000 characters. |
booking_class | string | Default: the cabin of the first flight's booking class. |
currency | string | Currency next to the price, e.g. "USD", "€". Default: "$". |
date_format | string | "short" or "numeric". |
logo | string | Logo in the ticket header. Default: none. |
passengers | array | Passenger names as on the ticket, e.g. "SMITH/JOHN MR". Default: the names in the PNR. |
pnr | string | Booking code printed on the ticket, 5–8 letters and digits. Default: the one in the text, or a random one. |
price | string | Total price printed on the ticket, e.g. "1200.50". Default: no price on the ticket. |
time_format | string | 24 or 12 hour time. Default: 24. |