{"openapi":"3.1.0","info":{"title":"Graph Hopper (BYOK) API","version":"0.1.0","description":"Graph Hopper (BYOK) lets an AI assistant read your own Graph Hopper data through the Graph Hopper API with a key you supply (GraphHopper API key). Read-only: 5 tools (get_route, get_travel_matrix, geocode, reverse_geocode, get_isochrone). The BYOK key travels with each request, is used for that one call only and is never stored, logged or cached; it is only ever sent to graphhopper.com....\n\nEvery operation is read-only or compute-only. The same tools are available over MCP (streamable HTTP) at https://byok-graphhopper.connectorbay.com/mcp.","contact":{"name":"Unify Dynamics LLC","email":"agent@connectorbay.com","url":"https://connectorbay.com/byok-graphhopper/docs"},"termsOfService":"https://connectorbay.com/byok-graphhopper/terms"},"servers":[{"url":"https://byok-graphhopper.connectorbay.com"}],"externalDocs":{"url":"https://connectorbay.com/byok-graphhopper/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_route":{"post":{"operationId":"get_route","summary":"Calculate the best route between two coordinates: distance in metres, time in milliseconds, ascent and descent. Turn-by-","description":"Calculate the best route between two coordinates: distance in metres, time in milliseconds, ascent and descent. Turn-by-turn instructions and route geometry only when asked. Uses API credits. Use for \"How far is it by car from Berlin Mitte to Berlin Neukoelln\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"from_lon":{"description":"Start longitude.","maximum":180,"minimum":-180,"title":"From Lon","type":"number"},"from_lat":{"description":"Start latitude.","maximum":90,"minimum":-90,"title":"From Lat","type":"number"},"to_lon":{"description":"End longitude.","maximum":180,"minimum":-180,"title":"To Lon","type":"number"},"to_lat":{"description":"End latitude.","maximum":90,"minimum":-90,"title":"To Lat","type":"number"},"profile":{"anyOf":[{"maxLength":40,"type":"string"},{"type":"null"}],"default":"car","description":"Routing profile, for example car, bike or foot (the valid profiles depend on the plan; car is the default).","title":"Profile"},"instructions":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":false,"description":"True to include turn-by-turn instructions (a longer answer).","title":"Instructions"},"calc_points":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":false,"description":"True to include the route geometry (a longer answer).","title":"Calc Points"},"locale":{"anyOf":[{"maxLength":10,"type":"string"},{"type":"null"}],"default":"en","description":"Language of the instructions, for example en or de.","title":"Locale"}},"required":["from_lon","from_lat","to_lon","to_lat"],"title":"get_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}},"/v1/tools/get_travel_matrix":{"post":{"operationId":"get_travel_matrix","summary":"Get the travel time (seconds) and distance (metres) from one coordinate to another using the matrix service. Uses API cr","description":"Get the travel time (seconds) and distance (metres) from one coordinate to another using the matrix service. Uses API credits. Use for \"How many minutes is the drive from point A to point B according to GraphHopper\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"from_lon":{"description":"Origin longitude.","maximum":180,"minimum":-180,"title":"From Lon","type":"number"},"from_lat":{"description":"Origin latitude.","maximum":90,"minimum":-90,"title":"From Lat","type":"number"},"to_lon":{"description":"Destination longitude.","maximum":180,"minimum":-180,"title":"To Lon","type":"number"},"to_lat":{"description":"Destination latitude.","maximum":90,"minimum":-90,"title":"To Lat","type":"number"},"profile":{"anyOf":[{"maxLength":40,"type":"string"},{"type":"null"}],"default":"car","description":"Routing profile, for example car, bike or foot (the valid profiles depend on the plan; car is the default).","title":"Profile"}},"required":["from_lon","from_lat","to_lon","to_lat"],"title":"get_travel_matrixArguments","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/geocode":{"post":{"operationId":"geocode","summary":"Turn an address or place name into coordinates with street, city, state, country and postcode. Uses API credits. Use for","description":"Turn an address or place name into coordinates with street, city, state, country and postcode. Uses API credits. Use for \"Where is Berlin Alexanderplatz\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"q":{"description":"Place or address text, for example 'Alexanderplatz Berlin'.","maxLength":300,"title":"Q","type":"string"},"limit":{"anyOf":[{"maximum":20,"minimum":1,"type":"integer"},{"type":"null"}],"default":5,"description":"Maximum number of results.","title":"Limit"},"locale":{"anyOf":[{"maxLength":5,"type":"string"},{"type":"null"}],"default":null,"description":"Language of the results: en, fr, es, de, pt, ru or it.","title":"Locale"},"point":{"anyOf":[{"maxLength":40,"type":"string"},{"type":"null"}],"default":null,"description":"Optional location bias as 'latitude,longitude'.","title":"Point"}},"required":["q"],"title":"geocodeArguments","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/reverse_geocode":{"post":{"operationId":"reverse_geocode","summary":"Find the place or address nearest to a coordinate. Uses API credits. Use for \"What is at latitude 52.5200, longitude 13.","description":"Find the place or address nearest to a coordinate. Uses API credits. Use for \"What is at latitude 52.5200, longitude 13.4050 according to GraphHopper\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"reverse":{"description":"Must be true for reverse geocoding.","title":"Reverse","type":"boolean"},"point":{"description":"Location as 'latitude,longitude', for example '52.52,13.405'.","maxLength":40,"title":"Point","type":"string"},"locale":{"anyOf":[{"maxLength":5,"type":"string"},{"type":"null"}],"default":null,"description":"Language of the results: en, fr, es, de, pt, ru or it.","title":"Locale"}},"required":["reverse","point"],"title":"reverse_geocodeArguments","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_isochrone":{"post":{"operationId":"get_isochrone","summary":"Compute the area reachable from a coordinate within a time (seconds) or distance (metres) limit, as polygons. Use for \"W","description":"Compute the area reachable from a coordinate within a time (seconds) or distance (metres) limit, as polygons. Use for \"What area can I drive to within 10 minutes of Berlin Alexanderplatz\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"point":{"description":"Start coordinate as 'latitude,longitude', for example '52.52,13.405'.","maxLength":40,"title":"Point","type":"string"},"profile":{"anyOf":[{"maxLength":40,"type":"string"},{"type":"null"}],"default":"car","description":"Routing profile, for example car, bike or foot (the valid profiles depend on the plan; car is the default).","title":"Profile"},"time_limit":{"anyOf":[{"maximum":7200,"minimum":1,"type":"integer"},{"type":"null"}],"default":600,"description":"Travel time limit in seconds.","title":"Time Limit"},"distance_limit":{"anyOf":[{"maximum":200000,"minimum":1,"type":"integer"},{"type":"null"}],"default":null,"description":"Travel distance limit in metres (used instead of the time limit).","title":"Distance Limit"},"buckets":{"anyOf":[{"maximum":20,"minimum":1,"type":"integer"},{"type":"null"}],"default":1,"description":"Number of nested isochrones to split the limit into.","title":"Buckets"}},"required":["point"],"title":"get_isochroneArguments","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}}}}