{"openapi":"3.1.0","info":{"title":"AeroDataBox (BYOK) API","version":"0.1.0","description":"AeroDataBox (BYOK) lets an AI assistant read your own AeroDataBox data through the AeroDataBox API with a key you supply (AeroDataBox API key). Read-only: 12 tools (get_flight_status, list_airport_departures, list_airport_arrivals, search_flight_numbers, get_airport, list_airport_runways, search_airports_near, search_airports_by_name, get_airport_local_time, get_flight_time_between_airports,...\n\nEvery operation is read-only or compute-only. The same tools are available over MCP (streamable HTTP) at https://byok-aerodatabox.connectorbay.com/mcp.","contact":{"name":"Unify Dynamics LLC","email":"agent@connectorbay.com","url":"https://connectorbay.com/byok-aerodatabox/docs"},"termsOfService":"https://connectorbay.com/byok-aerodatabox/terms"},"servers":[{"url":"https://byok-aerodatabox.connectorbay.com"}],"externalDocs":{"url":"https://connectorbay.com/byok-aerodatabox/docs"},"security":[{"upstreamKey":[]}],"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","description":"Optional. A Pro API key raises rate limits; no credentials are required."},"upstreamKey":{"type":"apiKey","in":"header","name":"X-Upstream-Key","description":"Your own key for the service this connector wraps (bring your own key). Used for that one call only; never stored, logged or cached."}},"schemas":{"Error":{"type":"object","properties":{"ok":{"const":false},"error":{"type":"object"}}}}},"paths":{"/v1/tools/get_flight_status":{"post":{"operationId":"get_flight_status","summary":"Get the status or schedule of a flight on one local date: departure and arrival airports, scheduled and revised times, t","description":"Get the status or schedule of a flight on one local date: departure and arrival airports, scheduled and revised times, terminal, gate, baggage belt, aircraft and distance. Returns a list because a flight number can have several legs. Use for \"What is the status of flight KL1395 on 2026-10-20\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"search_by":{"description":"What search_param is: Number (flight number), Reg (tail number), CallSign or Icao24 (Mode-S hex).","enum":["Number","Reg","CallSign","Icao24"],"title":"Search By","type":"string"},"search_param":{"description":"Flight number such as KL1395 (spaces and case do not matter), or the tail number, call sign or Mode-S code matching search_by.","maxLength":200,"title":"Search Param","type":"string"},"date_local":{"description":"Local date of departure or arrival as YYYY-MM-DD. Allowed range depends on the plan and data coverage.","maxLength":200,"title":"Date Local","type":"string"},"date_local_role":{"anyOf":[{"enum":["Arrival","Departure","Both"],"type":"string"},{"type":"null"}],"default":"Both","description":"Whether the date is the Departure date, the Arrival date or Both (default).","title":"Date Local Role"}},"required":["search_by","search_param","date_local"],"title":"get_flight_statusArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/list_airport_departures":{"post":{"operationId":"list_airport_departures","summary":"List departures from an airport in a time window relative to now: flight number, status, airline, aircraft, destination,","description":"List departures from an airport in a time window relative to now: flight number, status, airline, aircraft, destination, scheduled and revised time, terminal and gate. Live updates exist only for airports with live coverage; others show schedules. Use for \"What flights are departing from Amsterdam Schiphol in the next few hours\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"code_type":{"description":"Which code the airport code is: icao (4 letters, like EHAM) or iata (3 letters, like AMS).","enum":["Icao","Iata"],"title":"Code Type","type":"string"},"code":{"description":"Airport code matching code_type, for example AMS (iata) or EHAM (icao).","maxLength":200,"title":"Code","type":"string"},"direction":{"anyOf":[{"const":"Departure","type":"string"},{"type":"null"}],"default":"Departure","description":"Fixed to Departure: this tool only lists departures.","title":"Direction"},"offset_minutes":{"anyOf":[{"maximum":720,"minimum":-720,"type":"integer"},{"type":"null"}],"default":-120,"description":"Start of the window in minutes relative to the airport's current local time (negative = past). Default -120.","title":"Offset Minutes"},"duration_minutes":{"anyOf":[{"maximum":720,"minimum":1,"type":"integer"},{"type":"null"}],"default":720,"description":"Length of the window in minutes (the provider documents a default of 720; long windows may be rejected).","title":"Duration Minutes"},"with_cancelled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":true,"description":"True (default) to include cancelled, diverted and likely cancelled flights.","title":"With Cancelled"},"with_codeshared":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":true,"description":"True (default) to include codeshared flight numbers; false keeps only operating flights.","title":"With Codeshared"},"with_cargo":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":true,"description":"True (default) to include cargo flights.","title":"With Cargo"},"with_private":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":true,"description":"True (default) to include private flights.","title":"With Private"}},"required":["code_type","code"],"title":"list_airport_departuresArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/list_airport_arrivals":{"post":{"operationId":"list_airport_arrivals","summary":"List arrivals at an airport in a time window relative to now: flight number, status, airline, aircraft, origin, schedule","description":"List arrivals at an airport in a time window relative to now: flight number, status, airline, aircraft, origin, scheduled and revised time, terminal and gate. Live updates exist only for airports with live coverage; others show schedules. Use for \"Which flights are arriving at London Heathrow in the next two hours\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"code_type":{"description":"Which code the airport code is: icao (4 letters, like EHAM) or iata (3 letters, like AMS).","enum":["Icao","Iata"],"title":"Code Type","type":"string"},"code":{"description":"Airport code matching code_type, for example AMS (iata) or EHAM (icao).","maxLength":200,"title":"Code","type":"string"},"direction":{"anyOf":[{"const":"Arrival","type":"string"},{"type":"null"}],"default":"Arrival","description":"Fixed to Arrival: this tool only lists arrivals.","title":"Direction"},"offset_minutes":{"anyOf":[{"maximum":720,"minimum":-720,"type":"integer"},{"type":"null"}],"default":-120,"description":"Start of the window in minutes relative to the airport's current local time (negative = past). Default -120.","title":"Offset Minutes"},"duration_minutes":{"anyOf":[{"maximum":720,"minimum":1,"type":"integer"},{"type":"null"}],"default":720,"description":"Length of the window in minutes (the provider documents a default of 720; long windows may be rejected).","title":"Duration Minutes"},"with_cancelled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":true,"description":"True (default) to include cancelled, diverted and likely cancelled flights.","title":"With Cancelled"},"with_codeshared":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":true,"description":"True (default) to include codeshared flight numbers; false keeps only operating flights.","title":"With Codeshared"},"with_cargo":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":true,"description":"True (default) to include cargo flights.","title":"With Cargo"},"with_private":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":true,"description":"True (default) to include private flights.","title":"With Private"}},"required":["code_type","code"],"title":"list_airport_arrivalsArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/search_flight_numbers":{"post":{"operationId":"search_flight_numbers","summary":"Find flight numbers that start with a text, for example 'KL13'. Returns up to 100 numbers; use get_flight_status for det","description":"Find flight numbers that start with a text, for example 'KL13'. Returns up to 100 numbers; use get_flight_status for details. Use for \"Which flight numbers start with KL13\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"q":{"description":"Start of a flight number, at least 2 characters without spaces.","maxLength":20,"title":"Q","type":"string"},"limit":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":10,"description":"How many flight numbers to return (1 to 100).","title":"Limit"}},"required":["q"],"title":"search_flight_numbersArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/get_airport":{"post":{"operationId":"get_airport","summary":"Get an airport by IATA or ICAO code: name, city, country, coordinates, elevation, time zone and website. Only airports w","description":"Get an airport by IATA or ICAO code: name, city, country, coordinates, elevation, time zone and website. Only airports with both codes are included. Use for \"Tell me about Amsterdam Schiphol airport\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"code_type":{"description":"Which code the airport code is: icao (4 letters, like EHAM) or iata (3 letters, like AMS).","enum":["Icao","Iata"],"title":"Code Type","type":"string"},"code":{"description":"Airport code matching code_type, for example AMS (iata) or EHAM (icao).","maxLength":200,"title":"Code","type":"string"}},"required":["code_type","code"],"title":"get_airportArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/list_airport_runways":{"post":{"operationId":"list_airport_runways","summary":"List the runways of an airport: name, true heading, length and width in meters, surface, lighting and whether it is clos","description":"List the runways of an airport: name, true heading, length and width in meters, surface, lighting and whether it is closed. Use for \"What runways does Frankfurt airport have\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"code_type":{"description":"Which code the airport code is: icao (4 letters, like EHAM) or iata (3 letters, like AMS).","enum":["Icao","Iata"],"title":"Code Type","type":"string"},"code":{"description":"Airport code matching code_type, for example AMS (iata) or EHAM (icao).","maxLength":200,"title":"Code","type":"string"}},"required":["code_type","code"],"title":"list_airport_runwaysArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/search_airports_near":{"post":{"operationId":"search_airports_near","summary":"Find airports within a radius of a point, closest first. Returns code, name, city, country, coordinates and time zone. U","description":"Find airports within a radius of a point, closest first. Returns code, name, city, country, coordinates and time zone. Use for \"Which airports are within 100 km of Paris\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"lat":{"description":"Latitude in decimal degrees, -90 to 90.","maximum":90,"minimum":-90,"title":"Lat","type":"number"},"lon":{"description":"Longitude in decimal degrees, -180 to 180.","maximum":180,"minimum":-180,"title":"Lon","type":"number"},"radius_km":{"description":"Search radius in kilometers (1 to 1000).","maximum":1000,"minimum":1,"title":"Radius Km","type":"integer"},"limit":{"description":"Maximum airports to return (1 to 250).","maximum":250,"minimum":1,"title":"Limit","type":"integer"},"with_flight_info_only":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":false,"description":"True to keep only airports that have flight data.","title":"With Flight Info Only"}},"required":["lat","lon","radius_km","limit"],"title":"search_airports_nearArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/search_airports_by_name":{"post":{"operationId":"search_airports_by_name","summary":"Search airports by free text such as a city or airport name; short words may also match IATA or ICAO codes. Returns code","description":"Search airports by free text such as a city or airport name; short words may also match IATA or ICAO codes. Returns code, name, city, country and coordinates. Use for \"Find airports named Heathrow\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"q":{"description":"Search text, at least 3 characters.","maxLength":100,"title":"Q","type":"string"},"limit":{"anyOf":[{"maximum":250,"minimum":1,"type":"integer"},{"type":"null"}],"default":10,"description":"Maximum airports to return (1 to 250).","title":"Limit"},"with_flight_info_only":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":false,"description":"True to keep only airports that have flight data.","title":"With Flight Info Only"}},"required":["q"],"title":"search_airports_by_nameArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/get_airport_local_time":{"post":{"operationId":"get_airport_local_time","summary":"Get the current UTC and local time and the time zone id at an airport. Use for \"What time is it now at Tokyo Haneda\".","description":"Get the current UTC and local time and the time zone id at an airport. Use for \"What time is it now at Tokyo Haneda\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"code_type":{"description":"Which code the airport code is: icao (4 letters, like EHAM) or iata (3 letters, like AMS).","enum":["Icao","Iata"],"title":"Code Type","type":"string"},"code":{"description":"Airport code matching code_type, for example AMS (iata) or EHAM (icao).","maxLength":200,"title":"Code","type":"string"}},"required":["code_type","code"],"title":"get_airport_local_timeArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/get_flight_time_between_airports":{"post":{"operationId":"get_flight_time_between_airports","summary":"Get the great circle distance and approximate flight time between two airports, optionally adjusted for an aircraft type","description":"Get the great circle distance and approximate flight time between two airports, optionally adjusted for an aircraft type or a model trained on past flights. Use for \"How far is it from Amsterdam to New York JFK and how long is the flight\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"code_type":{"description":"Which code the airport code is: icao (4 letters, like EHAM) or iata (3 letters, like AMS).","enum":["Icao","Iata"],"title":"Code Type","type":"string"},"code_from":{"description":"Origin airport code matching code_type, for example AMS.","maxLength":200,"title":"Code From","type":"string"},"code_to":{"description":"Destination airport code matching code_type, for example JFK.","maxLength":200,"title":"Code To","type":"string"},"aircraft_name":{"anyOf":[{"maxLength":60,"type":"string"},{"type":"null"}],"default":null,"description":"Aircraft type as free text, for example 'Boeing 777-300ER'; used for a more accurate time.","title":"Aircraft Name"},"flight_time_model":{"anyOf":[{"enum":["Standard","ML01"],"type":"string"},{"type":"null"}],"default":"Standard","description":"Calculation model: Standard (default) or ML01 (based on historical flights).","title":"Flight Time Model"}},"required":["code_type","code_from","code_to"],"title":"get_flight_time_between_airportsArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/get_aircraft":{"post":{"operationId":"get_aircraft","summary":"Get one aircraft by tail number or Mode-S (ICAO 24-bit hex) code: airline, type, seats, engines, age and first flight da","description":"Get one aircraft by tail number or Mode-S (ICAO 24-bit hex) code: airline, type, seats, engines, age and first flight date. Use for \"Which aircraft is tail number PH-BXA\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"search_by":{"description":"What search_param is: Reg (tail number) or Icao24 (Mode-S hex code).","enum":["Reg","Icao24"],"title":"Search By","type":"string"},"search_param":{"description":"Tail number such as PH-BXA or Mode-S hex such as 484A7C, matching search_by.","maxLength":200,"title":"Search Param","type":"string"}},"required":["search_by","search_param"],"title":"get_aircraftArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/search_aircraft":{"post":{"operationId":"search_aircraft","summary":"Find active aircraft whose tail number starts with a text. Returns up to 10 aircraft with airline, type, seats and age. ","description":"Find active aircraft whose tail number starts with a text. Returns up to 10 aircraft with airline, type, seats and age. Use for \"Which aircraft have tail numbers starting with PH-BX\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"q":{"description":"Start of a tail number, at least 4 characters.","maxLength":20,"title":"Q","type":"string"},"limit":{"anyOf":[{"maximum":10,"minimum":1,"type":"integer"},{"type":"null"}],"default":5,"description":"How many aircraft to return (1 to 10).","title":"Limit"}},"required":["q"],"title":"search_aircraftArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}}}}