{"openapi":"3.1.0","info":{"title":"Transport API (BYOK) API","version":"0.1.0","description":"Transport API (BYOK) lets an AI assistant read your own Transport API data through the Transport API API with a key you supply (app key). Read-only: 5 tools (search_places, get_bus_stop_timetable, get_train_station_timetable, get_train_service_timetable, plan_public_transport_journey). The BYOK key travels with each request, is used for that one call only and is never stored, logged or cached; it...\n\nEvery operation is read-only or compute-only. The same tools are available over MCP (streamable HTTP) at https://byok-transportapi.connectorbay.com/mcp.","contact":{"name":"Unify Dynamics LLC","email":"agent@connectorbay.com","url":"https://connectorbay.com/byok-transportapi/docs"},"termsOfService":"https://connectorbay.com/byok-transportapi/terms"},"servers":[{"url":"https://byok-transportapi.connectorbay.com"}],"externalDocs":{"url":"https://connectorbay.com/byok-transportapi/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/search_places":{"post":{"operationId":"search_places","summary":"Search UK places by text and type: train stations, bus stops, tram stops, tube stations, towns, streets, points of inter","description":"Search UK places by text and type: train stations, bus stops, tram stops, tube stations, towns, streets, points of interest and postcodes. Returns codes (ATCO code, station code) used by the timetable tools. Use for \"What is the ATCO code of the bus stop near Wembley\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"query":{"anyOf":[{"maxLength":120,"type":"string"},{"type":"null"}],"default":null,"description":"Search text such as 'wembley', 'euston station' or a full UK postcode.","title":"Query"},"type":{"anyOf":[{"enum":["train_station","bus_stop","tram_stop","tube_station","settlement","street","poi","postcode"],"type":"string"},{"type":"null"}],"default":null,"description":"Limit results to one kind of place (default: all kinds).","title":"Type"},"lat":{"anyOf":[{"maximum":90,"minimum":-90,"type":"number"},{"type":"null"}],"default":null,"description":"Latitude of a focal point to order results by distance from (use with lon).","title":"Lat"},"lon":{"anyOf":[{"maximum":180,"minimum":-180,"type":"number"},{"type":"null"}],"default":null,"description":"Longitude of a focal point to order results by distance from (use with lat).","title":"Lon"},"bus_service":{"anyOf":[{"maxLength":20,"type":"string"},{"type":"null"}],"default":null,"description":"Only bus stops served by this bus service, for example 11.","title":"Bus Service"},"limit":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":10,"description":"Maximum number of places to return (1 to 100, default 10).","title":"Limit"},"page":{"anyOf":[{"minimum":1,"type":"integer"},{"type":"null"}],"default":1,"description":"Page number, starting at 1.","title":"Page"}},"title":"search_placesArguments","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_bus_stop_timetable":{"post":{"operationId":"get_bus_stop_timetable","summary":"Get the bus departures from one UK bus stop within a time window, scheduled and optionally with real-time information. U","description":"Get the bus departures from one UK bus stop within a time window, scheduled and optionally with real-time information. Use for \"What buses leave stop 490000077E in the next two hours\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"id":{"description":"ATCO code of the bus stop, for example 490000077E (find it with search_places).","maxLength":200,"title":"Id","type":"string"},"datetime":{"anyOf":[{"maxLength":40,"type":"string"},{"type":"null"}],"default":null,"description":"Basis of the time window as an ISO 8601 date and time, for example 2026-10-19T08:00:00 (default: now).","title":"Datetime"},"from_offset":{"anyOf":[{"maxLength":20,"type":"string"},{"type":"null"}],"default":null,"description":"Shift of the window start relative to datetime, as an ISO 8601 duration such as -PT01:00:00 (default PT00:00:00).","title":"From Offset"},"to_offset":{"anyOf":[{"maxLength":20,"type":"string"},{"type":"null"}],"default":null,"description":"Shift of the window end relative to datetime, as a duration such as PT06:00:00 (default PT02:00:00).","title":"To Offset"},"limit":{"anyOf":[{"maximum":1000,"minimum":1,"type":"integer"},{"type":"null"}],"default":50,"description":"Maximum number of departures to return (1 to 1000, default 50).","title":"Limit"},"live":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":false,"description":"True to add real-time information where available; false for scheduled times only.","title":"Live"},"situations":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":false,"description":"True to include disruption notices for the stop (limited beta).","title":"Situations"}},"required":["id"],"title":"get_bus_stop_timetableArguments","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_train_station_timetable":{"post":{"operationId":"get_train_station_timetable","summary":"Get the train departures (or arrivals) at one UK station within a time window, scheduled and optionally live, with platf","description":"Get the train departures (or arrivals) at one UK station within a time window, scheduled and optionally live, with platform, operator and status. Use for \"What trains leave London Waterloo in the next two hours\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"id":{"description":"Station code: a 3-letter CRS code such as WAT (or a TIPLOC code). The form crs:wat or tiploc:watrloo is also accepted. Find codes with search_places.","maxLength":200,"title":"Id","type":"string"},"datetime":{"anyOf":[{"maxLength":40,"type":"string"},{"type":"null"}],"default":null,"description":"Basis of the time window as an ISO 8601 date and time, for example 2026-10-19T08:00:00 (default: now).","title":"Datetime"},"from_offset":{"anyOf":[{"maxLength":20,"type":"string"},{"type":"null"}],"default":null,"description":"Shift of the window start relative to datetime, as an ISO 8601 duration such as -PT01:00:00 (default PT00:00:00).","title":"From Offset"},"to_offset":{"anyOf":[{"maxLength":20,"type":"string"},{"type":"null"}],"default":null,"description":"Shift of the window end relative to datetime, as a duration such as PT06:00:00 (default PT02:00:00).","title":"To Offset"},"limit":{"anyOf":[{"maximum":1000,"minimum":1,"type":"integer"},{"type":"null"}],"default":50,"description":"Maximum number of departures to return (1 to 1000, default 50).","title":"Limit"},"live":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":false,"description":"True to add real-time information where available; false for scheduled times only.","title":"Live"},"train_status":{"anyOf":[{"enum":["passenger","freight"],"type":"string"},{"type":"null"}],"default":"passenger","description":"passenger (default) or freight services.","title":"Train Status"},"destination":{"anyOf":[{"maxLength":30,"type":"string"},{"type":"null"}],"default":null,"description":"Only trains whose destination is this station code, for example crs:vwx.","title":"Destination"},"calling_at":{"anyOf":[{"maxLength":30,"type":"string"},{"type":"null"}],"default":null,"description":"Only trains that call at this station code.","title":"Calling At"},"operator":{"anyOf":[{"maxLength":10,"type":"string"},{"type":"null"}],"default":null,"description":"Only services of this operator, as an ATOC code such as SW.","title":"Operator"}},"required":["id"],"title":"get_train_station_timetableArguments","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_train_service_timetable":{"post":{"operationId":"get_train_service_timetable","summary":"Get all stops of one UK train service with scheduled and, when requested, real-time times. Use for \"Which stations does ","description":"Get all stops of one UK train service with scheduled and, when requested, real-time times. Use for \"Which stations does the train service W12345 call at\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"service":{"description":"Train service identifier as returned in the service field of a station timetable, for example gb-nr:W12345:2026-10-19.","maxLength":200,"title":"Service","type":"string"},"live":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":false,"description":"True to add real-time information where available.","title":"Live"}},"required":["service"],"title":"get_train_service_timetableArguments","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/plan_public_transport_journey":{"post":{"operationId":"plan_public_transport_journey","summary":"Plan UK public transport journeys between two places (bus, train, tube, tram, boat plus walking), with legs, times and d","description":"Plan UK public transport journeys between two places (bus, train, tube, tram, boat plus walking), with legs, times and distances. Use for \"How do I get from Euston station to Wembley Stadium by public transport\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"origin":{"description":"Start as lonlat:LON,LAT (for example lonlat:-0.13182,51.52788) or another scheme:value reference from search_places.","maxLength":80,"title":"Origin","type":"string"},"destination":{"description":"End as lonlat:LON,LAT or another scheme:value reference.","maxLength":80,"title":"Destination","type":"string"},"date":{"anyOf":[{"maxLength":10,"type":"string"},{"type":"null"}],"default":null,"description":"Date of travel as YYYY-MM-DD (default today).","title":"Date"},"time":{"anyOf":[{"maxLength":8,"type":"string"},{"type":"null"}],"default":null,"description":"Time of travel as HH:MM (default now).","title":"Time"},"journey_time_type":{"anyOf":[{"enum":["leave_after","arrive_by"],"type":"string"},{"type":"null"}],"default":"leave_after","description":"leave_after (default) or arrive_by.","title":"Journey Time Type"},"modes":{"anyOf":[{"enum":["bus","train","tube","tram","boat"],"type":"string"},{"type":"null"}],"default":null,"description":"Allow only this mode (plus walking); default all modes.","title":"Modes"},"not_modes":{"anyOf":[{"enum":["bus","train","tube","tram","boat"],"type":"string"},{"type":"null"}],"default":null,"description":"Exclude this mode from the plans.","title":"Not Modes"}},"required":["origin","destination"],"title":"plan_public_transport_journeyArguments","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}}}}