---
title: "Get Client Geofences"
description: "How to call Get Client Geofences (GET /client/geofences) in the Klaviyo REST API: authentication, parameters, request and response bodies, and an example request."
url: "https://developers.klaviyo.com/en/v2026-07-15/reference/get_client_geofences"
revision: "2026-07-15"
latestUrl: "https://developers.klaviyo.com/en/reference/get_client_geofences"
operationId: "get_client_geofences"
method: "GET"
endpoint: "https://a.klaviyo.com/client/geofences"
authentication: "publicKey"
scopes: []
rateLimits: {"burst":"3/s","steady":"60/m"}
revisionHeader: {"name":"revision","required":true}
deprecated: false
openApi: "https://raw.githubusercontent.com/klaviyo/openapi/2026-07-15/openapi/stable/apis/get_client_geofences.json"
jsonApi: {"fields":{"geofence":["id","latitude","longitude","radius"]},"pagination":{"style":"cursor","defaultPageSize":"20"}}
related: ["https://developers.klaviyo.com/en/v2026-07-15/reference/client/llms.txt","https://developers.klaviyo.com/en/v2026-07-15/reference/get_client_review_values_reports.md","https://developers.klaviyo.com/en/v2026-07-15/reference/get_client_reviews.md","https://developers.klaviyo.com/en/v2026-07-15/reference/create_client_review.md","https://developers.klaviyo.com/en/v2026-07-15/reference/create_client_subscription.md","https://developers.klaviyo.com/en/v2026-07-15/reference/create_client_push_token.md","https://developers.klaviyo.com/en/v2026-07-15/reference/unregister_client_push_token.md","https://developers.klaviyo.com/en/v2026-07-15/reference/create_client_event.md","https://developers.klaviyo.com/en/v2026-07-15/reference/create_client_profile.md","https://developers.klaviyo.com/en/v2026-07-15/reference/bulk_create_client_events.md","https://developers.klaviyo.com/en/v2026-07-15/reference/create_client_back_in_stock_subscription.md","https://developers.klaviyo.com/en/v2026-07-15/reference/get_client_ip_allowlist.md"]
---

# Get Client Geofences

> This is the Markdown version of https://developers.klaviyo.com/en/v2026-07-15/reference/get_client_geofences

```http
GET https://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-15` (required)
- Scopes: No scopes required
- Authentication: Public API key (site ID), in the `company_id` query parameter
- Rate limits: Burst: `3/s`, Steady: `60/m`
- OpenAPI: [Download this endpoint's OpenAPI document](https://raw.githubusercontent.com/klaviyo/openapi/2026-07-15/openapi/stable/apis/get_client_geofences.json)

## Example request

```bash
curl --request GET \
     --url 'https://a.klaviyo.com/client/geofences?company_id=PUBLIC_API_KEY' \
     --header 'accept: application/vnd.api+json' \
     --header 'X-Klaviyo-API-Filters: and(equals(lat,40.7128),equals(lng,-74.0060))' \
     --header 'revision: 2026-07-15'
```

## Query parameters

- `company_id` (string, required): Your Public API Key / Site ID. See [this article](https://help.klaviyo.com/hc/en-us/articles/115005062267) for more details. Example: `PUBLIC_API_KEY`
- `fields[geofence]` (string[]): For more information please visit [API overview](https://developers.klaviyo.com/en/v2026-07-15/reference.md) Allowed values: `id`, `latitude`, `longitude`, `radius`
- `page[cursor]` (string): For more information please visit [API overview](https://developers.klaviyo.com/en/v2026-07-15/reference.md)
- `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` (string, required): API endpoint revision (format: YYYY-MM-DD[.suffix]) Default: `2026-07-15`

## Responses

### 200: Success

Content type: `application/vnd.api+json`

- `data` (object[], required)
  - `type` (string, required): Allowed values: `geofence`
  - `id` (string, required): Primary key that uniquely identifies this geofence. Generated by the system. Example: `a1b2c3d4-e5f6-7890-abcd-ef1234567890`
  - `attributes` (object, required)
    - `latitude` (number, required): Latitude coordinate of the geofence center point Example: `40.7128`
    - `longitude` (number, required): Longitude coordinate of the geofence center point Example: `-74.006`
    - `radius` (number, required): Radius in meters from the center point Example: `100`
  - `links` (object, required)
    - `self` (string<uri>, required)
- `links` (object)
  - `self` (string<uri>, required)
  - `prev` (string<uri>)
  - `next` (string<uri>)
- `meta` (object): Response-level metadata
  - `agent_hints` (object): Optional hints emitted by the API for agent callers
    - `next_steps` (string[]): Suggested follow-up actions for agents to take after this response

#### Example response body

```json
{
  "data": [
    {
      "type": "geofence",
      "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
      "attributes": {
        "latitude": 40.7128,
        "longitude": -74.006,
        "radius": 100
      },
      "links": {
        "self": "https://www.example.com"
      }
    }
  ],
  "links": {
    "self": "https://www.example.com",
    "prev": "https://www.example.com",
    "next": "https://www.example.com"
  },
  "meta": {
    "agent_hints": {
      "next_steps": [
        "string"
      ]
    }
  }
}
```

### 4XX: Client Error

Content type: `application/vnd.api+json`

- `errors` (object[], required)
  - `id` (string, required)
  - `code` (string, required)
  - `title` (string, required)
  - `detail` (string, required)
  - `source` (object)
    - `pointer` (string)
    - `parameter` (string)

#### Example response body

```json
{
  "errors": [
    {
      "id": "string",
      "code": "string",
      "title": "string",
      "detail": "string",
      "source": {
        "pointer": "string",
        "parameter": "string"
      }
    }
  ]
}
```

### 5XX: Server Error

Content type: `application/vnd.api+json`

- `errors` (object[], required)
  - `id` (string, required)
  - `code` (string, required)
  - `title` (string, required)
  - `detail` (string, required)
  - `source` (object)
    - `pointer` (string)
    - `parameter` (string)

#### Example response body

```json
{
  "errors": [
    {
      "id": "string",
      "code": "string",
      "title": "string",
      "detail": "string",
      "source": {
        "pointer": "string",
        "parameter": "string"
      }
    }
  ]
}
```
