Bondery Geocode API

Address autocomplete and geocoding proxy

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 2

GET /geocode/suggest Suggest addresses #
GET /geocode/timezone Resolve a timezone #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/usebondery-com:usebondery-com-geocode-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

usebondery-com-geocode-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  contact:
    name: Bondery Support
    url: https://usebondery.com
  description: 'REST API for the Bondery application — a contact and relationship management platform.


    ## Authentication


    Most endpoints require authentication via a Better Auth session cookie or a Bearer token (session JWT or long-lived API key).


    **Session auth:** Sign in via the webapp or mobile app; send the OAuth access token as `Authorization: Bearer …` or rely on the webapp session cookie.


    **API keys:** Create keys in Settings → API keys. Send `Authorization: Bearer bondery_key_…` on allowed integration routes (contacts, groups, tags, interactions, imports, share, geocode). Keys support `read` (GET/HEAD) or `full` access. See the authentication guide.


    Endpoints under `/api/me/api-keys`, `/api/me/mcp-consents`, `/api/sync`, `/api/chat`, `/api/subscriptions`, and `/api/extension` do not accept API keys. AI assistants use `POST /mcp` with an MCP OAuth token, not this REST API.'
  license:
    name: AGPL-3.0
    url: https://www.gnu.org/licenses/agpl-3.0.html
  title: Bondery Geocode API
  version: 1.0.0
servers:
- description: Local development server
  url: https://api.usebondery.test
- description: Production server
  url: https://api.usebondery.com
tags:
- description: Address autocomplete and geocoding proxy
  name: Geocode
paths:
  /geocode/suggest:
    get:
      summary: Suggest addresses
      tags:
      - Geocode
      description: Returns mapped address/place autocomplete entries from Mapy.com
      parameters:
      - schema:
          default: address
          description: 'Search mode: `address` for postal addresses, `place` for points of interest'
          type: string
          enum:
          - address
          - place
        in: query
        name: mode
        description: 'Search mode: `address` for postal addresses, `place` for points of interest'
      - schema:
          type: string
          minLength: 3
          maxLength: 200
          description: Text to look up, at least 3 characters
        in: query
        name: search
        required: true
        description: Text to look up, at least 3 characters
      security:
      - bearerAuth: []
      - apiKeyAuth: []
      responses:
        '200':
          description: Address suggestions
          headers:
            RateLimit:
              $ref: '#/components/headers/RateLimit'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
          content:
            application/json:
              example:
                addresses:
                - addressCity: London
                  addressCountry: United Kingdom
                  addressCountryCode: GB
                  addressFormatted: 10 Downing Street, London SW1A 2AA, UK
                  addressGeocodeSource: mapy.com
                  addressGranularity: address
                  addressLine1: 10 Downing Street
                  addressLine2: null
                  addressPostalCode: SW1A 2AA
                  addressState: null
                  addressStateCode: null
                  geocodeConfidence: verified
                  label: null
                  latitude: 51.5034
                  longitude: -0.1276
                  timezone: Europe/London
                  type: home
                  value: 10 Downing Street, London
              schema:
                type: object
                properties:
                  addresses:
                    type: array
                    items:
                      type: object
                      properties:
                        addressCity:
                          description: City name
                          type:
                          - string
                          - 'null'
                        addressCountry:
                          description: Country name
                          type:
                          - string
                          - 'null'
                        addressCountryCode:
                          description: ISO 3166-1 alpha-2 country code
                          type:
                          - string
                          - 'null'
                        addressFormatted:
                          description: Full address on one line
                          type:
                          - string
                          - 'null'
                        addressGeocodeSource:
                          description: How the coordinates were resolved
                          type:
                          - string
                          - 'null'
                          enum:
                          - mapy.com
                          - manual
                          - null
                        addressGranularity:
                          type: string
                          enum:
                          - address
                          - city
                          - state
                          - country
                          description: Most specific part of the address that is known
                        addressLine1:
                          description: Street and house number
                          type:
                          - string
                          - 'null'
                        addressLine2:
                          description: Second address line, such as a unit
                          type:
                          - string
                          - 'null'
                        addressPostalCode:
                          description: Postal or ZIP code
                          type:
                          - string
                          - 'null'
                        addressState:
                          description: State or region name
                          type:
                          - string
                          - 'null'
                        addressStateCode:
                          description: State or region code
                          type:
                          - string
                          - 'null'
                        geocodeConfidence:
                          description: Whether the geocoder verified this address
                          type:
                          - string
                          - 'null'
                          enum:
                          - verified
                          - unverifiable
                          - null
                        label:
                          description: Custom label for the address
                          type:
                          - string
                          - 'null'
                        latitude:
                          description: Latitude in decimal degrees
                          type:
                          - number
                          - 'null'
                        longitude:
                          description: Longitude in decimal degrees
                          type:
                          - number
                          - 'null'
                        timezone:
                          description: IANA timezone name for this address
                          type:
                          - string
                          - 'null'
                        type:
                          type: string
                          enum:
                          - home
                          - work
                          - other
                          description: Address category
                        value:
                          type: string
                          description: Display value of the address
                      required:
                      - addressCity
                      - addressCountry
                      - addressCountryCode
                      - addressFormatted
                      - addressGeocodeSource
                      - addressGranularity
                      - addressLine1
                      - addressLine2
                      - addressPostalCode
                      - addressState
                      - addressStateCode
                      - geocodeConfidence
                      - label
                      - latitude
                      - longitude
                      - timezone
                      - type
                      - value
                      additionalProperties: false
                    description: Suggested addresses
                required:
                - addresses
                additionalProperties: false
                example:
                  addresses:
                  - addressCity: London
                    addressCountry: United Kingdom
                    addressCountryCode: GB
                    addressFormatted: 10 Downing Street, London SW1A 2AA, UK
                    addressGeocodeSource: mapy.com
                    addressGranularity: address
                    addressLine1: 10 Downing Street
                    addressLine2: null
                    addressPostalCode: SW1A 2AA
                    addressState: null
                    addressStateCode: null
                    geocodeConfidence: verified
                    label: null
                    latitude: 51.5034
                    longitude: -0.1276
                    timezone: Europe/London
                    type: home
                    value: 10 Downing Street, London
        '400':
          description: Invalid request
          content:
            application/json:
              example:
                error:
                  agent_message: body.email Invalid input. Read details for the rejected fields, correct those arguments, then retry the call.
                  code: validation_error
                  doc_url: https://usebondery.com/docs/api/errors/validation_error
                  message: body.email Invalid input
                  request_id: 00000000-0000-0000-0000-000000000000
                  type: invalid_request_error
                  param: body.email
              schema:
                $ref: '#/components/schemas/ApiError'
        '401':
          description: Authentication required
          content:
            application/json:
              example:
                error:
                  agent_message: Unauthorized - Please log in. Reconnect the client and approve access, then retry the call.
                  code: auth_required
                  doc_url: https://usebondery.com/docs/api/errors/auth_required
                  message: Unauthorized - Please log in
                  request_id: 00000000-0000-0000-0000-000000000000
                  type: authentication_error
              schema:
                $ref: '#/components/schemas/ApiError'
        '403':
          description: Forbidden
          content:
            application/json:
              example:
                error:
                  agent_message: Forbidden. Read doc_url for the recovery steps, then retry the call.
                  code: api_key_route_forbidden
                  doc_url: https://usebondery.com/docs/api/errors/api_key_route_forbidden
                  message: Forbidden
                  request_id: 00000000-0000-0000-0000-000000000000
                  type: authorization_error
              schema:
                $ref: '#/components/schemas/ApiError'
        '404':
          description: Resource not found
          content:
            application/json:
              example:
                error:
                  agent_message: Contact not found. Call search_contacts with the person's name and retry with a personId from the results.
                  code: contact_not_found
                  doc_url: https://usebondery.com/docs/api/errors/contact_not_found
                  message: Contact not found
                  request_id: 00000000-0000-0000-0000-000000000000
                  type: not_found_error
              schema:
                $ref: '#/components/schemas/ApiError'
        '426':
          description: Upgrade required
          content:
            application/json:
              example:
                error:
                  agent_message: Sync protocol version mismatch. Read doc_url for the recovery steps, then retry the call.
                  code: sync_protocol_mismatch
                  doc_url: https://usebondery.com/docs/api/errors/sync_protocol_mismatch
                  message: Sync protocol version mismatch
                  request_id: 00000000-0000-0000-0000-000000000000
                  type: invalid_request_error
                  details:
                    clientVersion: null
                    requiredVersion: 2
              schema:
                $ref: '#/components/schemas/ApiError'
        '429':
          description: Too many requests
          headers:
            RateLimit:
              $ref: '#/components/headers/RateLimit'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
          content:
            application/json:
              example:
                error:
                  agent_message: Rate limit exceeded. Retry in 42 seconds. Wait for the number of seconds in retry_after, then retry the same call. Do not retry in a loop.
                  code: rate_limit_exceeded
                  doc_url: https://usebondery.com/docs/api/errors/rate_limit_exceeded
                  message: Rate limit exceeded. Retry in 42 seconds.
                  request_id: 00000000-0000-0000-0000-000000000000
                  type: rate_limit_error
                  retry_after: 42
              schema:
                $ref: '#/components/schemas/ApiError'
        '500':
          description: Internal server error
          content:
            application/json:
              example:
                error:
                  agent_message: Internal Server Error. Retry the call once with the same arguments. If it fails again, tell the user the request_id and report the failure.
                  code: internal_server_error
                  doc_url: https://usebondery.com/docs/api/errors/internal_server_error
                  message: Internal Server Error
                  request_id: 00000000-0000-0000-0000-000000000000
                  type: api_error
              schema:
                $ref: '#/components/schemas/ApiError'
        '503':
          description: Service unavailable
          content:
            application/json:
              example:
                error:
                  agent_message: Service unavailable. Retry the call once with the same arguments. If it fails again, tell the user the request_id and report the failure.
                  code: service_unavailable
                  doc_url: https://usebondery.com/docs/api/errors/service_unavailable
                  message: Service unavailable
                  request_id: 00000000-0000-0000-0000-000000000000
                  type: service_unavailable_error
              schema:
                $ref: '#/components/schemas/ApiError'
      operationId: getGeocodeSuggest
      x-operation-id-source: derived
  /geocode/timezone:
    get:
      summary: Resolve a timezone
      tags:
      - Geocode
      description: Returns the IANA timezone for a latitude/longitude pair from Mapy.com
      parameters:
      - schema:
          type: number
          minimum: -90
          maximum: 90
          description: Latitude in decimal degrees
        in: query
        name: lat
        required: true
        description: Latitude in decimal degrees
      - schema:
          type: number
          minimum: -180
          maximum: 180
          description: Longitude in decimal degrees
        in: query
        name: lon
        required: true
        description: Longitude in decimal degrees
      security:
      - bearerAuth: []
      - apiKeyAuth: []
      responses:
        '200':
          description: Timezone lookup result
          headers:
            RateLimit:
              $ref: '#/components/headers/RateLimit'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
          content:
            application/json:
              example:
                timezone: Europe/London
              schema:
                type: object
                properties:
                  timezone:
                    description: IANA timezone name for these coordinates
                    type:
                    - string
                    - 'null'
                required:
                - timezone
                additionalProperties: false
                example:
                  timezone: Europe/London
        '400':
          description: Invalid request
          content:
            application/json:
              example:
                error:
                  agent_message: body.email Invalid input. Read details for the rejected fields, correct those arguments, then retry the call.
                  code: validation_error
                  doc_url: https://usebondery.com/docs/api/errors/validation_error
                  message: body.email Invalid input
                  request_id: 00000000-0000-0000-0000-000000000000
                  type: invalid_request_error
                  param: body.email
              schema:
                $ref: '#/components/schemas/ApiError'
        '401':
          description: Authentication required
          content:
            application/json:
              example:
                error:
                  agent_message: Unauthorized - Please log in. Reconnect the client and approve access, then retry the call.
                  code: auth_required
                  doc_url: https://usebondery.com/docs/api/errors/auth_required
                  message: Unauthorized - Please log in
                  request_id: 00000000-0000-0000-0000-000000000000
                  type: authentication_error
              schema:
                $ref: '#/components/schemas/ApiError'
        '403':
          description: Forbidden
          content:
            application/json:
              example:
                error:
                  agent_message: Forbidden. Read doc_url for the recovery steps, then retry the call.
                  code: api_key_route_forbidden
                  doc_url: https://usebondery.com/docs/api/errors/api_key_route_forbidden
                  message: Forbidden
                  request_id: 00000000-0000-0000-0000-000000000000
                  type: authorization_error
              schema:
                $ref: '#/components/schemas/ApiError'
        '404':
          description: Resource not found
          content:
            application/json:
              example:
                error:
                  agent_message: Contact not found. Call search_contacts with the person's name and retry with a personId from the results.
                  code: contact_not_found
                  doc_url: https://usebondery.com/docs/api/errors/contact_not_found
                  message: Contact not found
                  request_id: 00000000-0000-0000-0000-000000000000
                  type: not_found_error
              schema:
                $ref: '#/components/schemas/ApiError'
        '426':
          description: Upgrade required
          content:
            application/json:
              example:
                error:
                  agent_message: Sync protocol version mismatch. Read doc_url for the recovery steps, then retry the call.
                  code: sync_protocol_mismatch
                  doc_url: https://usebondery.com/docs/api/errors/sync_protocol_mismatch
                  message: Sync protocol version mismatch
                  request_id: 00000000-0000-0000-0000-000000000000
                  type: invalid_request_error
                  details:
                    clientVersion: null
                    requiredVersion: 2
              schema:
                $ref: '#/components/schemas/ApiError'
        '429':
          description: Too many requests
          headers:
            RateLimit:
              $ref: '#/components/headers/RateLimit'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
          content:
            application/json:
              example:
                error:
                  agent_message: Rate limit exceeded. Retry in 42 seconds. Wait for the number of seconds in retry_after, then retry the same call. Do not retry in a loop.
                  code: rate_limit_exceeded
                  doc_url: https://usebondery.com/docs/api/errors/rate_limit_exceeded
                  message: Rate limit exceeded. Retry in 42 seconds.
                  request_id: 00000000-0000-0000-0000-000000000000
                  type: rate_limit_error
                  retry_after: 42
              schema:
                $ref: '#/components/schemas/ApiError'
        '500':
          description: Internal server error
          content:
            application/json:
              example:
                error:
                  agent_message: Internal Server Error. Retry the call once with the same arguments. If it fails again, tell the user the request_id and report the failure.
                  code: internal_server_error
                  doc_url: https://usebondery.com/docs/api/errors/internal_server_error
                  message: Internal Server Error
                  request_id: 00000000-0000-0000-0000-000000000000
                  type: api_error
              schema:
                $ref: '#/components/schemas/ApiError'
        '503':
          description: Service unavailable
          content:
            application/json:
              example:
                error:
                  agent_message: Service unavailable. Retry the call once with the same arguments. If it fails again, tell the user the request_id and report the failure.
                  code: service_unavailable
                  doc_url: https://usebondery.com/docs/api/errors/service_unavailable
                  message: Service unavailable
                  request_id: 00000000-0000-0000-0000-000000000000
                  type: service_unavailable_error
              schema:
                $ref: '#/components/schemas/ApiError'
      operationId: getGeocodeTimezone
      x-operation-id-source: derived
components:
  schemas:
    ApiErrorBody:
      type: object
      properties:
        agent_message:
          type: string
          minLength: 1
          description: 'Recovery instruction for an AI agent: what failed, why, and how to fix the call. Always present.'
        code:
          type: string
          description: Machine-readable error code
        details:
          description: Extra fields for this error
          type: object
          additionalProperties: {}
        doc_url:
          type: string
          format: uri
          description: Documentation URL for this error code
        message:
          type: string
          description: Human-readable error message
        param:
          description: Request field that caused the error
          type: string
        request_id:
          type: string
          description: Identifier of this request
        retry_after:
          description: Seconds to wait before the next request
          type: integer
          maximum: 9007199254740991
          exclusiveMinimum: 0
        type:
          type: string
          enum:
          - invalid_request_error
          - authentication_error
          - authorization_error
          - not_found_error
          - conflict_error
          - rate_limit_error
          - api_error
          - service_unavailable_error
          description: Error class
      required:
      - agent_message
      - code
      - doc_url
      - message
      - request_id
      - type
      additionalProperties: false
    ApiError:
      type: object
      properties:
        error:
          description: Error payload
          allOf:
          - $ref: '#/components/schemas/ApiErrorBody'
      required:
      - error
      additionalProperties: false
      description: Error response with a human-readable message
      example:
        error:
          agent_message: body.email Invalid input. Read details for the rejected fields, correct those arguments, then retry the call.
          code: validation_error
          doc_url: https://usebondery.com/docs/api/errors/validation_error
          message: body.email Invalid input
          request_id: 00000000-0000-0000-0000-000000000000
          type: invalid_request_error
          param: body.email
  headers:
    RateLimitPolicy:
      description: Quota policy for this response. The value follows draft-ietf-httpapi-ratelimit-headers-11. This draft is not RFC 9237. The policy name is one of default, ai, enrich, geocode, export, import, health, mcp, csp_report, or not_found. q is the quota. w is the window in seconds.
      example: '"default";q=300;w=60'
      required: true
      schema:
        pattern: ^"(default|ai|enrich|geocode|export|import|health|mcp|csp_report|not_found)";q=\d+;w=\d+$
        type: string
    RetryAfter:
      description: Delay in whole seconds. The API includes this header on HTTP 429 only. The value is an integer delay-seconds count. The value equals t in the RateLimit header. The value equals error.retry_after.
      example: 47
      required: true
      schema:
        minimum: 0
        type: integer
    RateLimit:
      description: Remaining quota for this response. The value follows draft-ietf-httpapi-ratelimit-headers-11. This draft is not RFC 9237. The policy name matches the RateLimit-Policy header. r is the remaining requests. t is the seconds until reset. On HTTP 429, r is 0.
      example: '"default";r=12;t=47'
      required: true
      schema:
        pattern: ^"(default|ai|enrich|geocode|export|import|health|mcp|csp_report|not_found)";r=\d+;t=\d+$
        type: string
  securitySchemes:
    apiKeyAuth:
      bearerFormat: API Key
      description: 'Long-lived API key created in Settings → API keys. Format: `bondery_key_<keyId>_<secret>`. Only works on integration routes (contacts, groups, tags, interactions, imports, share, geocode). Supports `read` (GET/HEAD) or `full` access.'
      scheme: bearer
      type: http
    bearerAuth:
      bearerFormat: JWT
      description: 'Better Auth session access token (OAuth 2.1) from the webapp or mobile app. Send as `Authorization: Bearer <access_token>`.'
      scheme: bearer
      type: http