{"openapi":"3.1.0","info":{"title":"Searoutes (BYOK) API","version":"0.1.0","description":"Searoutes (BYOK) lets an AI assistant read your own Searoutes data through the Searoutes API with a key you supply (Searoutes API key). Read-only: 10 tools (find_locations, find_port, find_airport, find_closest_locations, get_vessel_position, get_vessel_eta, find_vessel_by_name, find_carrier, find_liner_service, get_sea_route). The BYOK key travels with each request, is used for that one call...\n\nEvery operation is read-only or compute-only. The same tools are available over MCP (streamable HTTP) at https://byok-searoutes.connectorbay.com/mcp.","contact":{"name":"Unify Dynamics LLC","email":"agent@connectorbay.com","url":"https://connectorbay.com/byok-searoutes/docs"},"termsOfService":"https://connectorbay.com/byok-searoutes/terms"},"servers":[{"url":"https://byok-searoutes.connectorbay.com"}],"externalDocs":{"url":"https://connectorbay.com/byok-searoutes/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/find_locations":{"post":{"operationId":"find_locations","summary":"Search ports, airports, zip codes, rail terminals and road terminals by partial name, or exactly by locode, IATA code or","description":"Search ports, airports, zip codes, rail terminals and road terminals by partial name, or exactly by locode, IATA code or postal code (use only one of these). Use for \"Which ports and airports match 'Montreal'\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"query":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}],"default":null,"description":"Partial text to search, for example a place name or part of a locode.","title":"Query"},"locode":{"anyOf":[{"maxLength":10,"type":"string"},{"type":"null"}],"default":null,"description":"Exact UN/LOCODE, for example 'DEHAM'.","title":"Locode"},"iata_code":{"anyOf":[{"maxLength":5,"type":"string"},{"type":"null"}],"default":null,"description":"Exact airport IATA code, for example 'YUL'.","title":"Iata Code"},"postal_code":{"anyOf":[{"maxLength":20,"type":"string"},{"type":"null"}],"default":null,"description":"Exact postal code.","title":"Postal Code"},"location_types":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}],"default":null,"description":"Comma-separated types to return: port, airport, zipcode, railTerminal, roadTerminal (all when empty).","title":"Location Types"},"country_codes":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}],"default":null,"description":"Comma-separated two-letter ISO country codes to keep, for example 'DE,NL'.","title":"Country Codes"},"exclude_country_codes":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}],"default":null,"description":"Comma-separated two-letter ISO country codes to leave out.","title":"Exclude Country Codes"}},"title":"find_locationsArguments","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/find_port":{"post":{"operationId":"find_port","summary":"Search ports by partial name or exact UN/LOCODE (use either, not both); returns locode, country, size and coordinates. U","description":"Search ports by partial name or exact UN/LOCODE (use either, not both); returns locode, country, size and coordinates. Use for \"What is the UN/LOCODE and size of the port of Hamburg\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"query":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}],"default":null,"description":"Partial port name or locode, for example 'Hamburg'.","title":"Query"},"locode":{"anyOf":[{"maxLength":10,"type":"string"},{"type":"null"}],"default":null,"description":"Exact UN/LOCODE, for example 'DEHAM'.","title":"Locode"},"sizes":{"anyOf":[{"maxLength":60,"type":"string"},{"type":"null"}],"default":null,"description":"Comma-separated sizes to keep: large, medium, small, tiny.","title":"Sizes"},"country_codes":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}],"default":null,"description":"Comma-separated two-letter ISO country codes to keep, for example 'DE,NL'.","title":"Country Codes"},"exclude_country_codes":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}],"default":null,"description":"Comma-separated two-letter ISO country codes to leave out.","title":"Exclude Country Codes"}},"title":"find_portArguments","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/find_airport":{"post":{"operationId":"find_airport","summary":"Search airports by partial name, or exactly by IATA code or locode (use only one); returns city, size and coordinates. U","description":"Search airports by partial name, or exactly by IATA code or locode (use only one); returns city, size and coordinates. Use for \"What is the IATA code and location of Marseille airport\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"query":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}],"default":null,"description":"Partial airport name or code, for example 'Marseille'.","title":"Query"},"iata_code":{"anyOf":[{"maxLength":5,"type":"string"},{"type":"null"}],"default":null,"description":"Exact IATA code, for example 'MRS'.","title":"Iata Code"},"locode":{"anyOf":[{"maxLength":10,"type":"string"},{"type":"null"}],"default":null,"description":"Exact UN/LOCODE of the airport.","title":"Locode"},"sizes":{"anyOf":[{"maxLength":60,"type":"string"},{"type":"null"}],"default":null,"description":"Comma-separated sizes to keep: large, medium, small.","title":"Sizes"},"country_codes":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}],"default":null,"description":"Comma-separated two-letter ISO country codes to keep, for example 'DE,NL'.","title":"Country Codes"},"exclude_country_codes":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}],"default":null,"description":"Comma-separated two-letter ISO country codes to leave out.","title":"Exclude Country Codes"}},"title":"find_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/find_closest_locations":{"post":{"operationId":"find_closest_locations","summary":"Find the ports, airports or terminals closest to a longitude,latitude point, ordered by distance (distance in meters). U","description":"Find the ports, airports or terminals closest to a longitude,latitude point, ordered by distance (distance in meters). Use for \"Which port is nearest to the coordinates 9.9656,53.5329\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"coordinates":{"description":"Point as 'longitude,latitude', for example '9.965629,53.532961'.","maxLength":200,"title":"Coordinates","type":"string"},"radius":{"anyOf":[{"maximum":20000000,"minimum":0,"type":"number"},{"type":"null"}],"default":null,"description":"Search radius in meters; when empty only the closest location is returned.","title":"Radius"},"location_types":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}],"default":null,"description":"Comma-separated types: port, airport, zipcode, railTerminal, roadTerminal.","title":"Location Types"},"limit":{"anyOf":[{"maximum":50,"minimum":0,"type":"integer"},{"type":"null"}],"default":null,"description":"Maximum number of results (0 to 50, default 1 on the provider side).","title":"Limit"},"country_codes":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}],"default":null,"description":"Comma-separated two-letter ISO country codes to keep, for example 'DE,NL'.","title":"Country Codes"},"exclude_country_codes":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}],"default":null,"description":"Comma-separated two-letter ISO country codes to leave out.","title":"Exclude Country Codes"}},"required":["coordinates"],"title":"find_closest_locationsArguments","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_vessel_position":{"post":{"operationId":"get_vessel_position","summary":"Get the latest AIS position of a vessel by IMO or MMSI: speed, course, draft, navigation status, origin port, destinatio","description":"Get the latest AIS position of a vessel by IMO or MMSI: speed, course, draft, navigation status, origin port, destination and ETA. A past time can be given to get the closest earlier fix. Use for \"Where is the vessel with IMO 9299628 right now\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"imo":{"anyOf":[{"minimum":1,"type":"integer"},{"type":"null"}],"default":null,"description":"IMO number of the vessel (required unless mmsi is given).","title":"Imo"},"mmsi":{"anyOf":[{"minimum":1,"type":"integer"},{"type":"null"}],"default":null,"description":"MMSI number of the vessel (use instead of imo).","title":"Mmsi"},"date_time":{"anyOf":[{"maxLength":40,"type":"string"},{"type":"null"}],"default":null,"description":"ISO 8601 time to get the position closest to, for example '2026-06-09T18:00:00Z'.","title":"Date Time"}},"title":"get_vessel_positionArguments","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_vessel_eta":{"post":{"operationId":"get_vessel_eta","summary":"Get a vessel's identity, last position, speed, destination port and ETA estimates (AIS-based and route-based, Unix milli","description":"Get a vessel's identity, last position, speed, destination port and ETA estimates (AIS-based and route-based, Unix milliseconds) by IMO number. Use for \"When will the vessel with IMO 9299628 arrive\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"imo":{"description":"IMO number of the vessel (7 digits), for example 9299628.","title":"Imo","type":"integer"}},"required":["imo"],"title":"get_vessel_etaArguments","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/find_vessel_by_name":{"post":{"operationId":"find_vessel_by_name","summary":"Find vessels by full or partial name (up to 5 matches): IMO, MMSI, former names, type, size and tonnage. Use for \"What i","description":"Find vessels by full or partial name (up to 5 matches): IMO, MMSI, former names, type, size and tonnage. Use for \"What is the IMO number of the ship MSC Irina\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"name":{"description":"Full or partial vessel name, for example 'MSC IRINA'.","maxLength":100,"title":"Name","type":"string"}},"required":["name"],"title":"find_vessel_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/find_carrier":{"post":{"operationId":"find_carrier","summary":"Find ocean carriers by name or by SCAC code; returns the carrier id, name and SCAC. Use for \"What is the SCAC code of MS","description":"Find ocean carriers by name or by SCAC code; returns the carrier id, name and SCAC. Use for \"What is the SCAC code of MSC\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"name":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}],"default":null,"description":"Full or partial carrier name, for example 'MSC'.","title":"Name"},"scac":{"anyOf":[{"maxLength":10,"type":"string"},{"type":"null"}],"default":null,"description":"Exact SCAC code, for example 'MSCU'.","title":"Scac"}},"title":"find_carrierArguments","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/find_liner_service":{"post":{"operationId":"find_liner_service","summary":"Find liner services by full or partial name, optionally for one carrier SCAC: operator ids with service codes, port call","description":"Find liner services by full or partial name, optionally for one carrier SCAC: operator ids with service codes, port calls (locodes) and vessel IMOs. Use for \"Which vessels and ports does the FAL6 service of CMA CGM call at\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"name":{"description":"Full or partial service name or code, for example 'FAL6'.","maxLength":100,"title":"Name","type":"string"},"carrier_scac":{"anyOf":[{"maxLength":10,"type":"string"},{"type":"null"}],"default":null,"description":"SCAC of a carrier operating the service, for example 'CMDU'.","title":"Carrier Scac"}},"required":["name"],"title":"find_liner_serviceArguments","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_sea_route":{"post":{"operationId":"get_sea_route","summary":"Compute the shortest sea route between two or more locations (coordinates or UN/LOCODEs): distance in meters, duration i","description":"Compute the shortest sea route between two or more locations (coordinates or UN/LOCODEs): distance in meters, duration in milliseconds and the areas crossed. Use for \"How long is the sea route from Hamburg to Singapore\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"locations":{"description":"Positions separated by ';', each a 'longitude,latitude' pair or a UN/LOCODE, for example 'DEHAM;SGSIN' (up to 20 positions).","maxLength":400,"title":"Locations","type":"string"},"speed_in_kts":{"anyOf":[{"maximum":60,"minimum":0,"type":"number"},{"type":"null"}],"default":null,"description":"Vessel speed in knots, used to estimate duration.","title":"Speed In Kts"},"avoid_seca":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":false,"description":"True to avoid sulphur emission control areas.","title":"Avoid Seca"},"avoid_hra":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":false,"description":"True to avoid high risk areas.","title":"Avoid Hra"},"allow_ice_areas":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":false,"description":"True to allow routes through ice areas.","title":"Allow Ice Areas"}},"required":["locations"],"title":"get_sea_routeArguments","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}}}}