Skip to content

This page is available as Markdown at https://developers.klaviyo.com/en/v2026-07-15/reference/get_client_geofences.md. Its OpenAPI document is at https://raw.githubusercontent.com/klaviyo/openapi/2026-07-15/openapi/stable/apis/get_client_geofences.json. An index of every page is at https://developers.klaviyo.com/llms.txt.

KlaviyoKlaviyoDevelopers
v2026-07-15

You're reading the reference for API revision 2026-07-15. The latest revision is 2026-10-15. See this page in the latest revision.

Get Client Geofences

GEThttps://a.klaviyo.com/client/geofences

Get all geofences in an account.

Returns a paginated list of all geofences for the specified company. This is the GA API endpoint designed for mobile SDK consumption. No authentication required.

Returns a maximum of 100 results per page (default 20).

This API supports filtering via header instead of query param. Provide X-Klaviyo-API-Filters header to filter geofences. We don't use regular query param filters here because lat and long are sensitive information.

Supported filters:

  • lat (equals) - Latitude coordinate for distance-based sorting
  • lng (equals) - Longitude coordinate for distance-based sorting

When both lat and lng are provided, geofences are returned sorted by distance from the specified coordinates (closest first).

Example filter header: X-Klaviyo-API-Filters: and(equals(lat,40.7128),equals(lng,-74.0060))

Revision header
revision: 2026-07-15required
Scopes
No scopes required
Authentication
Public API key (site ID), in the company_id query parameter
Rate limits
Burst: 3/sSteady: 60/m

Query parameters

  • company_id#stringrequired

    Your Public API Key / Site ID. See this article for more details.

    Example: PUBLIC_API_KEY

  • fields[geofence]#string[]

    For more information please visit API overview

    Allowed values:
    • id
    • latitude
    • longitude
    • radius
  • page[cursor]#string

    For more information please visit API overview

  • page[size]#integer

    Default: 20. Min: 1. Max: 100.

Headers

  • X-Klaviyo-API-Filters#string

    Supported filters:

    • lat (equals) - Latitude coordinate for distance-based sorting
    • lng (equals) - Longitude coordinate for distance-based sorting

    When both lat and lng are provided, geofences are returned sorted by distance from the specified coordinates (closest first).

    Example: and(equals(lat,40.7128),equals(lng,-74.0060))

  • revision#stringrequired

    API endpoint revision (format: YYYY-MM-DD[.suffix])

    2026-07-15

Responses

200Success

Content type: application/vnd.api+json

  • data#object[]required
    Show 4 fields
    • type#stringrequired
      Allowed values:
      • geofence
    • id#stringrequired

      Primary key that uniquely identifies this geofence. Generated by the system.

      Example: a1b2c3d4-e5f6-7890-abcd-ef1234567890

    • attributes#objectrequired
      Show 3 fields
      • latitude#numberrequired

        Latitude coordinate of the geofence center point

        Example: 40.7128

      • longitude#numberrequired

        Longitude coordinate of the geofence center point

        Example: -74.006

      • radius#numberrequired

        Radius in meters from the center point

        Example: 100

  • meta#object

    Response-level metadata

    Show 1 field
    • agent_hints#object

      Optional hints emitted by the API for agent callers

      Show 1 field
      • next_steps#string[]

        Suggested follow-up actions for agents to take after this response

4XXClient Error

Content type: application/vnd.api+json

  • errors#object[]required
    Show 5 fields
    • id#stringrequired
    • code#stringrequired
    • title#stringrequired
    • detail#stringrequired
    • source#object
      Show 2 fields
      • pointer#string
      • parameter#string

5XXServer Error

Content type: application/vnd.api+json

  • errors#object[]required
    Show 5 fields
    • id#stringrequired
    • code#stringrequired
    • title#stringrequired
    • detail#stringrequired
    • source#object
      Show 2 fields
      • pointer#string
      • parameter#string