---
title: "List all geofences"
method: GET
path: "/geofence/v1/geofences"
tags: ["geofence_Geofences"]
---

# List all geofences

`GET /geofence/v1/geofences`

Retrieves a paginated list of geofences for the tenant. Supports filtering by geofence IDs, exact name match, or searching by name. Optionally include device summary statistics and/or total count.

## Query parameters

- `offset` integer
- `limit` integer
- `ids` string
- `include_summary` boolean
- `include_count` boolean
- `search` string
- `name` string

## Headers

- `X-Esper-Tenant-Id` string, uuid, required
- `X-Caller-Id` string, required

## Response `200`

A list of geofences

- object
  - `content` object
    - `next` string, nullable
    - `previous` string, nullable
    - `count` integer, nullable — Total count of geofences matching the filters. Only included when include_count=true.
    - `results` GeofenceGeofenceListResponse[]
      - `id` string, uuid, required — Unique identifier for the geofence
      - `name` string, required — Name of the geofence
      - `description` string — Description of the geofence
      - `actions` string[], required — Actions configured for this geofence. Empty array means no actions.
      - `geometry` union, required
        - GeofencePolygonGeometry — Polygon geometry with coordinates as array of coordinate objects
          - `type` 'polygon', required
          - `coordinates` object[], required — Array of coordinate objects, each containing latitude and longitude
            - `latitude` number, required — Latitude coordinate
            - `longitude` number, required — Longitude coordinate
        - GeofenceCircleGeometry — Circle geometry with center coordinates and radius
          - `type` 'circle', required
          - `coordinates` object[], required — Array with single coordinate object containing latitude and longitude
            - `latitude` number, required — Latitude coordinate
            - `longitude` number, required — Longitude coordinate
          - `radius` number, required — Radius in meters
      - `created_at` string, date-time, required — When the geofence was created
      - `updated_at` string, date-time, required — When the geofence was last updated
      - `device_summary` GeofenceDeviceSummaryResponse — Summary statistics of devices in relation to a geofence
        - `total_devices` integer, required — Total number of devices associated with the geofence
        - `inside_count` integer, required — Number of devices currently inside the geofence
        - `outside_count` integer, required — Number of devices currently outside the geofence
        - `unknown_count` integer, required — Number of devices with unknown state (neither inside nor outside)
      - `blueprints` GeofenceBlueprintUsageItem[] — Blueprint usage statistics for this geofence (top 5). Only included when include_summary=true.
        - `blueprint_id` string, uuid, required — UUID of the blueprint
        - `blueprint_version_number` integer, required — Blueprint version number
        - `device_count` integer, required — Number of devices using this blueprint revision

## Other responses

- `400` — Invalid input
- `401` — Unauthorized
- `500` — Server error

---

[API](https://skmtc.net/esper/apis/esper-api-reference.md) · [All operations](https://skmtc.net/esper/apis/esper-api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/esper/esper-api-reference/revisions/e1f64cbb488e/schema)
