{"openapi":"3.1.0","info":{"title":"Vessel API (BYOK) API","version":"0.1.0","description":"Vessel API (BYOK) lets an AI assistant read your own Vessel API data through the Vessel API API with a key you supply (Vessel API key). Read-only: 12 tools (search_vessels, get_vessel, get_vessel_position, get_vessel_eta, vessels_in_radius, get_vessel_emissions, get_vessel_casualties, search_ports, get_port, get_port_inbound, get_port_events, get_last_port_event). 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-vesselapi.connectorbay.com/mcp.","contact":{"name":"Unify Dynamics LLC","email":"agent@connectorbay.com","url":"https://connectorbay.com/byok-vesselapi/docs"},"termsOfService":"https://connectorbay.com/byok-vesselapi/terms"},"servers":[{"url":"https://byok-vesselapi.connectorbay.com"}],"externalDocs":{"url":"https://connectorbay.com/byok-vesselapi/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_vessels":{"post":{"operationId":"search_vessels","summary":"Search vessels by one query across IMO, MMSI, callsign and name (SQL LIKE wildcards % and _ allowed in names), or by nam","description":"Search vessels by one query across IMO, MMSI, callsign and name (SQL LIKE wildcards % and _ allowed in names), or by name, flag, type or year built. Returns static data such as type, size, tonnage and flag. At least one filter is needed. Use for \"Find the vessel EVER GIVEN\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"q":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Unified search over IMO, MMSI, ENI, callsign and vessel name, for example 'EVER GIVEN'.","title":"Q"},"name":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Vessel name.","title":"Name"},"flag":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"ISO 2-letter flag state code, for example PA (one value).","title":"Flag"},"vessel_type":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Vessel type such as Cargo A, case-insensitive (one value).","title":"Vessel Type"},"year_built_min":{"anyOf":[{"maximum":2100,"minimum":1800,"type":"integer"},{"type":"null"}],"default":null,"description":"Minimum year built.","title":"Year Built Min"},"year_built_max":{"anyOf":[{"maximum":2100,"minimum":1800,"type":"integer"},{"type":"null"}],"default":null,"description":"Maximum year built.","title":"Year Built Max"},"limit":{"anyOf":[{"maximum":50,"minimum":1,"type":"integer"},{"type":"null"}],"default":20,"description":"How many results to return (1 to 50).","title":"Limit"},"next_token":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Pagination token: the nextToken value of the previous answer.","title":"Next Token"}},"title":"search_vesselsArguments","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":{"post":{"operationId":"get_vessel","summary":"Get static data of one vessel by MMSI or IMO: name, call sign, flag, type, build year, dimensions, tonnage, TEU and home","description":"Get static data of one vessel by MMSI or IMO: name, call sign, flag, type, build year, dimensions, tonnage, TEU and home port. Use for \"What size is the vessel with IMO 9811000\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"id":{"description":"MMSI (9 digits) or IMO number of the vessel, for example 232003239.","maxLength":200,"title":"Id","type":"string"},"id_type":{"description":"What the id is: mmsi or imo.","enum":["mmsi","imo"],"title":"Id Type","type":"string"}},"required":["id","id_type"],"title":"get_vesselArguments","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 last stored AIS position of a vessel from terrestrial AIS: coordinates, speed over ground, course, heading, navi","description":"Get the last stored AIS position of a vessel from terrestrial AIS: coordinates, speed over ground, course, heading, navigational status and time. It can be hours or days old. Use for \"Where is vessel 353136000 now\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"id":{"description":"MMSI (9 digits) or IMO number of the vessel, for example 232003239.","maxLength":200,"title":"Id","type":"string"},"id_type":{"description":"What the id is: mmsi or imo.","enum":["mmsi","imo"],"title":"Id Type","type":"string"}},"required":["id","id_type"],"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 the most recent ETA a vessel reported over AIS (declared by the crew, not predicted): destination, destination port ","description":"Get the most recent ETA a vessel reported over AIS (declared by the crew, not predicted): destination, destination port code, ETA and draught. Use for \"When does vessel 9811000 say it will arrive\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"id":{"description":"MMSI (9 digits) or IMO number of the vessel, for example 232003239.","maxLength":200,"title":"Id","type":"string"},"id_type":{"description":"What the id is: mmsi or imo.","enum":["mmsi","imo"],"title":"Id Type","type":"string"}},"required":["id","id_type"],"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/vessels_in_radius":{"post":{"operationId":"vessels_in_radius","summary":"List vessels with a position report within a radius (up to 100 km) of a point in a time window of at most 4 hours (defau","description":"List vessels with a position report within a radius (up to 100 km) of a point in a time window of at most 4 hours (default last 2 hours). Use for \"Which ships are within 10 km of Rotterdam\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"longitude":{"description":"Longitude of the centre, for example 4.5.","maximum":180,"minimum":-180,"title":"Longitude","type":"number"},"latitude":{"description":"Latitude of the centre, for example 51.5.","maximum":90,"minimum":-90,"title":"Latitude","type":"number"},"radius":{"description":"Radius in meters (1 to 100000).","maximum":100000,"minimum":1,"title":"Radius","type":"number"},"time_from":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Start time in RFC 3339, for example 2026-10-17T06:00:00Z.","title":"Time From"},"time_to":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"End time in RFC 3339.","title":"Time To"},"limit":{"anyOf":[{"maximum":50,"minimum":1,"type":"integer"},{"type":"null"}],"default":20,"description":"How many results to return (1 to 50).","title":"Limit"},"next_token":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Pagination token: the nextToken value of the previous answer.","title":"Next Token"}},"required":["longitude","latitude","radius"],"title":"vessels_in_radiusArguments","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_emissions":{"post":{"operationId":"get_vessel_emissions","summary":"List EU MRV emissions reports of a vessel by reporting period: CO2 and fuel use totals, CO2 and fuel per distance, time ","description":"List EU MRV emissions reports of a vessel by reporting period: CO2 and fuel use totals, CO2 and fuel per distance, time at sea and technical efficiency. Use for \"What were the CO2 emissions of vessel IMO 9074729\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"id":{"description":"MMSI (9 digits) or IMO number of the vessel, for example 232003239.","maxLength":200,"title":"Id","type":"string"},"id_type":{"description":"What the id is: mmsi or imo.","enum":["mmsi","imo"],"title":"Id Type","type":"string"},"limit":{"anyOf":[{"maximum":50,"minimum":1,"type":"integer"},{"type":"null"}],"default":20,"description":"How many results to return (1 to 50).","title":"Limit"},"next_token":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Pagination token: the nextToken value of the previous answer.","title":"Next Token"}},"required":["id","id_type"],"title":"get_vessel_emissionsArguments","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_casualties":{"post":{"operationId":"get_vessel_casualties","summary":"List marine casualty and incident records that involve a vessel: date, event types, severity, people injured or lost, po","description":"List marine casualty and incident records that involve a vessel: date, event types, severity, people injured or lost, pollution flag and investigating state. Use for \"Has vessel IMO 9074729 been in any marine casualty\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"id":{"description":"MMSI (9 digits) or IMO number of the vessel, for example 232003239.","maxLength":200,"title":"Id","type":"string"},"id_type":{"description":"What the id is: mmsi or imo.","enum":["mmsi","imo"],"title":"Id Type","type":"string"},"limit":{"anyOf":[{"maximum":50,"minimum":1,"type":"integer"},{"type":"null"}],"default":20,"description":"How many results to return (1 to 50).","title":"Limit"},"next_token":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Pagination token: the nextToken value of the previous answer.","title":"Next Token"}},"required":["id","id_type"],"title":"get_vessel_casualtiesArguments","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_ports":{"post":{"operationId":"search_ports","summary":"Search ports by name, country (ISO code or name), type, size or region: location, size, harbor use, channel depth, maxim","description":"Search ports by name, country (ISO code or name), type, size or region: location, size, harbor use, channel depth, maximum vessel size and services. At least one filter is needed. Use for \"Find large ports in the Netherlands\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"name":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Port name, for example Rotterdam.","title":"Name"},"country":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"ISO 2-letter country code or country name (one value).","title":"Country"},"type":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Port type, for example Seaport (one value).","title":"Type"},"size":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Port size, for example Large (one value).","title":"Size"},"region":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Geographic region name (partial match).","title":"Region"},"limit":{"anyOf":[{"maximum":50,"minimum":1,"type":"integer"},{"type":"null"}],"default":20,"description":"How many results to return (1 to 50).","title":"Limit"},"next_token":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Pagination token: the nextToken value of the previous answer.","title":"Next Token"}},"title":"search_portsArguments","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_port":{"post":{"operationId":"get_port","summary":"Get one port by UN/LOCODE: location, type, size, depths, maximum vessel dimensions, pilotage, tugs, drydock and supplies","description":"Get one port by UN/LOCODE: location, type, size, depths, maximum vessel dimensions, pilotage, tugs, drydock and supplies. Use for \"What are the facilities and limits of the port of Singapore\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"unlocode":{"description":"UN/LOCODE of the port, for example NLRTM for Rotterdam or SGSIN for Singapore.","maxLength":200,"title":"Unlocode","type":"string"}},"required":["unlocode"],"title":"get_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/get_port_inbound":{"post":{"operationId":"get_port_inbound","summary":"List vessels that report a port as destination with ETA in a window (default now to 72 hours ahead). Use for \"Which ship","description":"List vessels that report a port as destination with ETA in a window (default now to 72 hours ahead). Use for \"Which ships are heading to Rotterdam in the next three days\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"unlocode":{"description":"UN/LOCODE of the port, for example NLRTM for Rotterdam or SGSIN for Singapore.","maxLength":200,"title":"Unlocode","type":"string"},"eta_from":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Start of the ETA window in RFC 3339 (default now).","title":"Eta From"},"eta_to":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"End of the ETA window in RFC 3339 (default 72 hours ahead).","title":"Eta To"},"limit":{"anyOf":[{"maximum":50,"minimum":1,"type":"integer"},{"type":"null"}],"default":20,"description":"How many results to return (1 to 50).","title":"Limit"},"next_token":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Pagination token: the nextToken value of the previous answer.","title":"Next Token"}},"required":["unlocode"],"title":"get_port_inboundArguments","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_port_events":{"post":{"operationId":"get_port_events","summary":"List arrivals and departures at a port in a time window (default last 2 hours) with vessel and time. Use for \"Which ship","description":"List arrivals and departures at a port in a time window (default last 2 hours) with vessel and time. Use for \"Which ships arrived in Singapore in the last two hours\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"unlocode":{"description":"UN/LOCODE of the port, for example NLRTM for Rotterdam or SGSIN for Singapore.","maxLength":200,"title":"Unlocode","type":"string"},"time_from":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Start time in RFC 3339, for example 2026-10-17T06:00:00Z.","title":"Time From"},"time_to":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"End time in RFC 3339.","title":"Time To"},"limit":{"anyOf":[{"maximum":50,"minimum":1,"type":"integer"},{"type":"null"}],"default":20,"description":"How many results to return (1 to 50).","title":"Limit"},"next_token":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Pagination token: the nextToken value of the previous answer.","title":"Next Token"}},"required":["unlocode"],"title":"get_port_eventsArguments","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_last_port_event":{"post":{"operationId":"get_last_port_event","summary":"Get the most recent port arrival or departure of a vessel with port and time. Use for \"Which port did vessel 9811000 las","description":"Get the most recent port arrival or departure of a vessel with port and time. Use for \"Which port did vessel 9811000 last visit\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"id":{"description":"MMSI (9 digits) or IMO number of the vessel, for example 232003239.","maxLength":200,"title":"Id","type":"string"},"id_type":{"description":"What the id is: mmsi or imo.","enum":["mmsi","imo"],"title":"Id Type","type":"string"}},"required":["id","id_type"],"title":"get_last_port_eventArguments","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}}}}