{"openapi":"3.1.0","info":{"title":"Geocode Earth (BYOK) API","version":"0.1.0","description":"Geocode Earth (BYOK) lets an AI assistant read your own Geocode Earth data through the Geocode Earth API with a key you supply (Geocode Earth API key (starts with ge-)). Read-only: 5 tools (search_places, autocomplete_places, search_structured, reverse_geocode, get_place). 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...\n\nEvery operation is read-only or compute-only. The same tools are available over MCP (streamable HTTP) at https://byok-geocodeearth.connectorbay.com/mcp.","contact":{"name":"Unify Dynamics LLC","email":"agent@connectorbay.com","url":"https://connectorbay.com/byok-geocodeearth/docs"},"termsOfService":"https://connectorbay.com/byok-geocodeearth/terms"},"servers":[{"url":"https://byok-geocodeearth.connectorbay.com"}],"externalDocs":{"url":"https://connectorbay.com/byok-geocodeearth/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":"Convert an address, place name, postal code or city (full text) to coordinates; results are GeoJSON features with label,","description":"Convert an address, place name, postal code or city (full text) to coordinates; results are GeoJSON features with label, layer and parent regions. Use for \"Where is 476 5th Avenue, New York\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"text":{"description":"What to search for, for example '476 5th Avenue, New York, NY 10018'.","maxLength":300,"title":"Text","type":"string"},"country":{"anyOf":[{"maxLength":60,"type":"string"},{"type":"null"}],"default":null,"description":"Only results in these countries, as comma-separated ISO 3166-1 codes (2 or 3 letters), for example 'FR,DE'.","title":"Country"},"layers":{"anyOf":[{"maxLength":120,"type":"string"},{"type":"null"}],"default":null,"description":"Only these result layers, comma-separated, for example 'address,street' or 'country,dependency'; prefix a layer with - to exclude it.","title":"Layers"},"focus_lat":{"anyOf":[{"maximum":90,"minimum":-90,"type":"number"},{"type":"null"}],"default":null,"description":"Latitude of a point to prefer nearby results; give together with focus_lon.","title":"Focus Lat"},"focus_lon":{"anyOf":[{"maximum":180,"minimum":-180,"type":"number"},{"type":"null"}],"default":null,"description":"Longitude of a point to prefer nearby results; give together with focus_lat.","title":"Focus Lon"}},"required":["text"],"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/autocomplete_places":{"post":{"operationId":"autocomplete_places","summary":"Suggest places for partly typed text (type-ahead), as GeoJSON features with label, layer and coordinates. Use for \"Sugge","description":"Suggest places for partly typed text (type-ahead), as GeoJSON features with label, layer and coordinates. Use for \"Suggest places starting with 'Eiffel' in France\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"text":{"description":"Partly typed address or place name, for example 'Eiffel'.","maxLength":200,"title":"Text","type":"string"},"country":{"anyOf":[{"maxLength":60,"type":"string"},{"type":"null"}],"default":null,"description":"Only results in these countries, as comma-separated ISO 3166-1 codes (2 or 3 letters), for example 'FR,DE'.","title":"Country"},"layers":{"anyOf":[{"maxLength":120,"type":"string"},{"type":"null"}],"default":null,"description":"Only these result layers, comma-separated, for example 'address,street' or 'country,dependency'; prefix a layer with - to exclude it.","title":"Layers"},"focus_lat":{"anyOf":[{"maximum":90,"minimum":-90,"type":"number"},{"type":"null"}],"default":null,"description":"Latitude of a point to prefer nearby results; give together with focus_lon.","title":"Focus Lat"},"focus_lon":{"anyOf":[{"maximum":180,"minimum":-180,"type":"number"},{"type":"null"}],"default":null,"description":"Longitude of a point to prefer nearby results; give together with focus_lat.","title":"Focus Lon"}},"required":["text"],"title":"autocomplete_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_structured":{"post":{"operationId":"search_structured","summary":"Geocode an address given as separate fields (address, city, postal code, country, ...); give at least one field. Use for","description":"Geocode an address given as separate fields (address, city, postal code, country, ...); give at least one field. Use for \"Geocode 10 Downing Street, London SW1A 2AA, GB\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"address":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"House number and street combined, for example '10 Downing Street'.","title":"Address"},"neighbourhood":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}],"default":null,"description":"Neighbourhood name.","title":"Neighbourhood"},"borough":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}],"default":null,"description":"Borough name.","title":"Borough"},"locality":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}],"default":null,"description":"City or town name.","title":"Locality"},"county":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}],"default":null,"description":"County name.","title":"County"},"region":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}],"default":null,"description":"State or region name.","title":"Region"},"postalcode":{"anyOf":[{"maxLength":20,"type":"string"},{"type":"null"}],"default":null,"description":"Postal code.","title":"Postalcode"},"country":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}],"default":null,"description":"Country as ISO code or full name.","title":"Country"}},"title":"search_structuredArguments","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 address or point of interest at a coordinate; with layers set (for example 'coarse') it returns the containing ","description":"Find the address or point of interest at a coordinate; with layers set (for example 'coarse') it returns the containing area such as the city. Use for \"What is at latitude -22.9519, longitude -43.2105\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"lat":{"description":"Latitude in decimal degrees, -90 to 90.","maximum":90,"minimum":-90,"title":"Lat","type":"number"},"lon":{"description":"Longitude in decimal degrees, -180 to 180.","maximum":180,"minimum":-180,"title":"Lon","type":"number"},"layers":{"anyOf":[{"maxLength":120,"type":"string"},{"type":"null"}],"default":null,"description":"Result layers; use 'coarse' (or a list such as 'locality,region,country') to get the containing area instead of an address.","title":"Layers"}},"required":["lat","lon"],"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_place":{"post":{"operationId":"get_place","summary":"Fetch full records for one or more Geocode Earth global ids (gid) returned by other tools. Use for \"Show the place recor","description":"Fetch full records for one or more Geocode Earth global ids (gid) returned by other tools. Use for \"Show the place record for whosonfirst:locality:101751119\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"ids":{"description":"Comma-separated global ids, for example 'whosonfirst:locality:101751119'.","maxLength":500,"title":"Ids","type":"string"}},"required":["ids"],"title":"get_placeArguments","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}}}}