{"openapi":"3.1.0","info":{"title":"SNCF API (BYOK) API","version":"0.1.0","description":"SNCF API (BYOK) lets an AI assistant read your own SNCF API data through the SNCF API API with a key you supply (SNCF API token). Read-only: 10 tools (search_places, search_public_transport_objects, list_places_nearby, plan_journey, get_stop_area_departures, get_stop_area_arrivals, get_stop_area_schedules, list_line_reports, list_traffic_reports, list_lines). The BYOK key travels with each...\n\nEvery operation is read-only or compute-only. The same tools are available over MCP (streamable HTTP) at https://byok-sncf.connectorbay.com/mcp.","contact":{"name":"Unify Dynamics LLC","email":"agent@connectorbay.com","url":"https://connectorbay.com/byok-sncf/docs"},"termsOfService":"https://connectorbay.com/byok-sncf/terms"},"servers":[{"url":"https://byok-sncf.connectorbay.com"}],"externalDocs":{"url":"https://connectorbay.com/byok-sncf/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 places by name in the French rail network: stop areas, addresses, points of interest and administrative areas, be","description":"Search places by name in the French rail network: stop areas, addresses, points of interest and administrative areas, best match first. Use for \"Find the SNCF station called Lyon Part-Dieu\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"q":{"description":"Search text, for example 'Lyon Part-Dieu'.","maxLength":100,"title":"Q","type":"string"},"type":{"anyOf":[{"enum":["stop_area","address","administrative_region","poi"],"type":"string"},{"type":"null"}],"default":null,"description":"Limit to one kind of place.","title":"Type"},"from_coordinates":{"anyOf":[{"maxLength":40,"type":"string"},{"type":"null"}],"default":null,"description":"Prefer places near this point, as longitude;latitude, for example 2.35;48.85.","title":"From Coordinates"},"depth":{"anyOf":[{"maximum":3,"minimum":0,"type":"integer"},{"type":"null"}],"default":null,"description":"Level of detail of nested objects, 0 (smallest) to 3 (largest).","title":"Depth"},"disable_geojson":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":null,"description":"True to leave geographic shapes out of the answer (much smaller).","title":"Disable Geojson"}},"required":["q"],"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/search_public_transport_objects":{"post":{"operationId":"search_public_transport_objects","summary":"Search lines, routes, networks, stop areas and stop points of the French rail network by name. Use for \"Which SNCF lines","description":"Search lines, routes, networks, stop areas and stop points of the French rail network by name. Use for \"Which SNCF lines or networks match TER Auvergne-Rhone-Alpes\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"q":{"description":"Search text, for example 'TER Auvergne-Rhone-Alpes' or 'Lyon'.","maxLength":100,"title":"Q","type":"string"},"type":{"anyOf":[{"enum":["network","commercial_mode","line","route","stop_area","stop_point"],"type":"string"},{"type":"null"}],"default":null,"description":"Limit to one kind of object.","title":"Type"},"disable_disruption":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":null,"description":"True to leave disruptions out of the answer.","title":"Disable Disruption"},"depth":{"anyOf":[{"maximum":3,"minimum":0,"type":"integer"},{"type":"null"}],"default":null,"description":"Level of detail of nested objects, 0 (smallest) to 3 (largest).","title":"Depth"}},"required":["q"],"title":"search_public_transport_objectsArguments","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_places_nearby":{"post":{"operationId":"list_places_nearby","summary":"List stops and points of interest within a distance of a coordinate, nearest first. Use for \"Which stops are within 300 ","description":"List stops and points of interest within a distance of a coordinate, nearest first. Use for \"Which stops are within 300 metres of Paris Gare de Lyon\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"coordinates":{"description":"Longitude and latitude joined by a semicolon, for example '2.3735;48.8443'.","maxLength":200,"title":"Coordinates","type":"string"},"distance":{"anyOf":[{"maximum":100000,"minimum":1,"type":"integer"},{"type":"null"}],"default":null,"description":"Search radius in metres (default 500).","title":"Distance"},"type":{"anyOf":[{"enum":["stop_area","stop_point","poi","address"],"type":"string"},{"type":"null"}],"default":null,"description":"Limit to one kind of place.","title":"Type"},"count":{"anyOf":[{"maximum":200,"minimum":1,"type":"integer"},{"type":"null"}],"default":10,"description":"How many results to return (1 to 200).","title":"Count"},"start_page":{"anyOf":[{"maximum":100000,"minimum":0,"type":"integer"},{"type":"null"}],"default":null,"description":"Page number, starting at 0.","title":"Start Page"},"disable_geojson":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":null,"description":"True to leave geographic shapes out of the answer (much smaller).","title":"Disable Geojson"}},"required":["coordinates"],"title":"list_places_nearbyArguments","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_journey":{"post":{"operationId":"plan_journey","summary":"Compute public transport journeys between two places in the French rail network, with sections, duration, transfers and ","description":"Compute public transport journeys between two places in the French rail network, with sections, duration, transfers and fare when available. Use for \"How do I get by train from Paris to Lyon tomorrow at 9\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"from_place":{"anyOf":[{"maxLength":80,"type":"string"},{"type":"null"}],"default":null,"description":"Origin as longitude;latitude (for example 2.3749;48.8467) or a place ID such as 'stop_area:...'.","title":"From Place"},"to_place":{"anyOf":[{"maxLength":80,"type":"string"},{"type":"null"}],"default":null,"description":"Destination as longitude;latitude or a place ID.","title":"To Place"},"datetime":{"anyOf":[{"maxLength":15,"type":"string"},{"type":"null"}],"default":null,"description":"Travel time as ISO 8601 basic format, for example 20261020T090000; default is now and must be inside the coverage's production period.","title":"Datetime"},"datetime_represents":{"anyOf":[{"enum":["departure","arrival"],"type":"string"},{"type":"null"}],"default":null,"description":"Whether datetime is the departure or the arrival time.","title":"Datetime Represents"},"traveler_type":{"anyOf":[{"enum":["standard","slow_walker","fast_walker","luggage","wheelchair"],"type":"string"},{"type":"null"}],"default":null,"description":"Walking and accessibility profile.","title":"Traveler Type"},"first_section_mode":{"anyOf":[{"enum":["walking","bike","bss","car","ridesharing","taxi"],"type":"string"},{"type":"null"}],"default":null,"description":"How the traveler gets to the first stop: walking, bike, bss (bike sharing), car, ridesharing or taxi.","title":"First Section Mode"},"last_section_mode":{"anyOf":[{"enum":["walking","bike","bss","car","ridesharing","taxi"],"type":"string"},{"type":"null"}],"default":null,"description":"How the traveler leaves the last stop.","title":"Last Section Mode"},"max_nb_transfers":{"anyOf":[{"maximum":20,"minimum":0,"type":"integer"},{"type":"null"}],"default":null,"description":"Maximum number of transfers per journey (default 10).","title":"Max Nb Transfers"},"max_duration_to_pt":{"anyOf":[{"maximum":7200,"minimum":0,"type":"integer"},{"type":"null"}],"default":null,"description":"Longest walk or ride to reach public transport, in seconds (default 1800).","title":"Max Duration To Pt"},"data_freshness":{"anyOf":[{"enum":["base_schedule","realtime"],"type":"string"},{"type":"null"}],"default":null,"description":"base_schedule (default) or realtime to take live disruptions into account.","title":"Data Freshness"},"count":{"anyOf":[{"maximum":10,"minimum":1,"type":"integer"},{"type":"null"}],"default":null,"description":"Number of journeys to return.","title":"Count"}},"title":"plan_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}},"/v1/tools/get_stop_area_departures":{"post":{"operationId":"get_stop_area_departures","summary":"List the next departures from a stop area in chronological order, with line, direction and times. Use for \"What are the ","description":"List the next departures from a stop area in chronological order, with line, direction and times. Use for \"What are the next departures from Paris Gare de Lyon\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"stop_area_id":{"description":"Stop area ID, for example 'stop_area:OSF:SA:CTP4025'; find it with search_public_transport_objects or search_places.","maxLength":200,"title":"Stop Area Id","type":"string"},"from_datetime":{"anyOf":[{"maxLength":15,"type":"string"},{"type":"null"}],"default":null,"description":"Start time as ISO 8601 basic format, for example 20261020T083000; default is now.","title":"From Datetime"},"duration":{"anyOf":[{"maximum":604800,"minimum":1,"type":"integer"},{"type":"null"}],"default":null,"description":"Window in seconds after from_datetime to look in (default 86400).","title":"Duration"},"count":{"anyOf":[{"maximum":200,"minimum":1,"type":"integer"},{"type":"null"}],"default":10,"description":"How many results to return (1 to 200).","title":"Count"},"data_freshness":{"anyOf":[{"enum":["base_schedule","realtime"],"type":"string"},{"type":"null"}],"default":null,"description":"base_schedule for planned timetables or realtime to include live updates.","title":"Data Freshness"},"direction_type":{"anyOf":[{"enum":["all","forward","backward"],"type":"string"},{"type":"null"}],"default":null,"description":"Filter by route direction: forward (inbound), backward (outbound) or all.","title":"Direction Type"},"depth":{"anyOf":[{"maximum":3,"minimum":0,"type":"integer"},{"type":"null"}],"default":null,"description":"Level of detail of nested objects, 0 (smallest) to 3 (largest).","title":"Depth"},"disable_geojson":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":null,"description":"True to leave geographic shapes out of the answer (much smaller).","title":"Disable Geojson"}},"required":["stop_area_id"],"title":"get_stop_area_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/get_stop_area_arrivals":{"post":{"operationId":"get_stop_area_arrivals","summary":"List the next arrivals at a stop area in chronological order, with line, direction and times. Use for \"Which trains arri","description":"List the next arrivals at a stop area in chronological order, with line, direction and times. Use for \"Which trains arrive at Paris Gare de Lyon in the next hour\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"stop_area_id":{"description":"Stop area ID, for example 'stop_area:OSF:SA:CTP4025'; find it with search_public_transport_objects or search_places.","maxLength":200,"title":"Stop Area Id","type":"string"},"from_datetime":{"anyOf":[{"maxLength":15,"type":"string"},{"type":"null"}],"default":null,"description":"Start time as ISO 8601 basic format, for example 20261020T083000; default is now.","title":"From Datetime"},"duration":{"anyOf":[{"maximum":604800,"minimum":1,"type":"integer"},{"type":"null"}],"default":null,"description":"Window in seconds after from_datetime to look in (default 86400).","title":"Duration"},"count":{"anyOf":[{"maximum":200,"minimum":1,"type":"integer"},{"type":"null"}],"default":10,"description":"How many results to return (1 to 200).","title":"Count"},"data_freshness":{"anyOf":[{"enum":["base_schedule","realtime"],"type":"string"},{"type":"null"}],"default":null,"description":"base_schedule for planned timetables or realtime to include live updates.","title":"Data Freshness"},"direction_type":{"anyOf":[{"enum":["all","forward","backward"],"type":"string"},{"type":"null"}],"default":null,"description":"Filter by route direction: forward (inbound), backward (outbound) or all.","title":"Direction Type"},"depth":{"anyOf":[{"maximum":3,"minimum":0,"type":"integer"},{"type":"null"}],"default":null,"description":"Level of detail of nested objects, 0 (smallest) to 3 (largest).","title":"Depth"},"disable_geojson":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":null,"description":"True to leave geographic shapes out of the answer (much smaller).","title":"Disable Geojson"}},"required":["stop_area_id"],"title":"get_stop_area_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/get_stop_area_schedules":{"post":{"operationId":"get_stop_area_schedules","summary":"Get timetables grouped by line and direction for a stop area, with the departure times in the window. Use for \"What is t","description":"Get timetables grouped by line and direction for a stop area, with the departure times in the window. Use for \"What is the timetable of each line at Paris Gare de Lyon today\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"stop_area_id":{"description":"Stop area ID, for example 'stop_area:OSF:SA:CTP4025'; find it with search_public_transport_objects or search_places.","maxLength":200,"title":"Stop Area Id","type":"string"},"from_datetime":{"anyOf":[{"maxLength":15,"type":"string"},{"type":"null"}],"default":null,"description":"Start time as ISO 8601 basic format, for example 20261020T083000; default is now.","title":"From Datetime"},"duration":{"anyOf":[{"maximum":604800,"minimum":1,"type":"integer"},{"type":"null"}],"default":null,"description":"Window in seconds after from_datetime to look in (default 86400).","title":"Duration"},"data_freshness":{"anyOf":[{"enum":["base_schedule","realtime"],"type":"string"},{"type":"null"}],"default":null,"description":"base_schedule for planned timetables or realtime to include live updates.","title":"Data Freshness"},"direction_type":{"anyOf":[{"enum":["all","forward","backward"],"type":"string"},{"type":"null"}],"default":null,"description":"Filter by route direction: forward (inbound), backward (outbound) or all.","title":"Direction Type"},"items_per_schedule":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":null,"description":"Maximum number of times per line and direction.","title":"Items Per Schedule"},"depth":{"anyOf":[{"maximum":3,"minimum":0,"type":"integer"},{"type":"null"}],"default":null,"description":"Level of detail of nested objects, 0 (smallest) to 3 (largest).","title":"Depth"},"disable_geojson":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":null,"description":"True to leave geographic shapes out of the answer (much smaller).","title":"Disable Geojson"}},"required":["stop_area_id"],"title":"get_stop_area_schedulesArguments","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_line_reports":{"post":{"operationId":"list_line_reports","summary":"List current and planned disruptions of the French rail network grouped by line, with the affected stops. Use for \"Which","description":"List current and planned disruptions of the French rail network grouped by line, with the affected stops. Use for \"Which SNCF lines are disrupted at the moment\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"since":{"anyOf":[{"maxLength":15,"type":"string"},{"type":"null"}],"default":null,"description":"Only disruptions active after this time (ISO 8601 basic format).","title":"Since"},"until":{"anyOf":[{"maxLength":15,"type":"string"},{"type":"null"}],"default":null,"description":"Only disruptions active before this time (ISO 8601 basic format).","title":"Until"},"count":{"anyOf":[{"maximum":200,"minimum":1,"type":"integer"},{"type":"null"}],"default":null,"description":"Maximum number of line reports (default 25).","title":"Count"},"depth":{"anyOf":[{"maximum":3,"minimum":0,"type":"integer"},{"type":"null"}],"default":null,"description":"Level of detail of nested objects, 0 (smallest) to 3 (largest).","title":"Depth"},"disable_geojson":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":null,"description":"True to leave geographic shapes out of the answer (much smaller).","title":"Disable Geojson"}},"title":"list_line_reportsArguments","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_traffic_reports":{"post":{"operationId":"list_traffic_reports","summary":"List disruptions of the French rail network grouped by network, with the affected lines and stop areas. Use for \"What is","description":"List disruptions of the French rail network grouped by network, with the affected lines and stop areas. Use for \"What is the traffic situation on each SNCF network\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"count":{"anyOf":[{"maximum":200,"minimum":1,"type":"integer"},{"type":"null"}],"default":null,"description":"Maximum number of networks.","title":"Count"},"depth":{"anyOf":[{"maximum":3,"minimum":0,"type":"integer"},{"type":"null"}],"default":null,"description":"Level of detail of nested objects, 0 (smallest) to 3 (largest).","title":"Depth"},"disable_geojson":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":null,"description":"True to leave geographic shapes out of the answer (much smaller).","title":"Disable Geojson"}},"title":"list_traffic_reportsArguments","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_lines":{"post":{"operationId":"list_lines","summary":"List the lines of the French rail network with code, colour, mode and opening hours. Use for \"Which SNCF lines exist and","description":"List the lines of the French rail network with code, colour, mode and opening hours. Use for \"Which SNCF lines exist and what are their opening hours\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"count":{"anyOf":[{"maximum":200,"minimum":1,"type":"integer"},{"type":"null"}],"default":10,"description":"How many results to return (1 to 200).","title":"Count"},"start_page":{"anyOf":[{"maximum":100000,"minimum":0,"type":"integer"},{"type":"null"}],"default":null,"description":"Page number, starting at 0.","title":"Start Page"},"depth":{"anyOf":[{"maximum":3,"minimum":0,"type":"integer"},{"type":"null"}],"default":null,"description":"Level of detail of nested objects, 0 (smallest) to 3 (largest).","title":"Depth"},"filter":{"anyOf":[{"maxLength":150,"type":"string"},{"type":"null"}],"default":null,"description":"Filter expression, for example 'physical_mode.id=physical_mode:Metro' or 'network.id=network:RER'.","title":"Filter"},"disable_geojson":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":null,"description":"True to leave geographic shapes out of the answer (much smaller).","title":"Disable Geojson"}},"title":"list_linesArguments","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}}}}