Retrieves a paginated list of geofences configured for the tenant. Use it to enumerate all geofences, optionally narrowed down by ID or name.
Supports filtering by a list of geofence IDs, an exact name match, or a free-text name search, and can optionally include device summary statistics and/or a total count alongside each geofence in the response.
About Geofences
A geofence is a virtual geographic boundary (defined by a location and radius) that triggers device actions — such as locking down or sounding an alert — when a managed device enters or leaves the area. Geofences can also be tied to blueprints so that specific device configurations apply based on location.
Key Fields / Query Parameters
- geofence IDs — filter to a specific set of geofences by ID
- name — exact-match filter on geofence name
- search — free-text search across geofence names
- include device summary statistics — optionally embed device counts for each geofence in the list response
Common Use Cases
- Building a geofence management view that lists all configured boundaries
- Looking up a geofence by name before fetching its device or blueprint details
- Getting a quick device-count overview per geofence without a separate call
Security
geofence_bearerAuth
- Mock serverhttps://api.esper.io/_mock/openapi/geofence/v1/geofences
- https://develop-api.esper.cloud/apihttps://develop-api.esper.cloud/api/geofence/v1/geofences
curl -i -X GET \
'https://api.esper.io/_mock/openapi/geofence/v1/geofences?offset=0&limit=10&ids=11111111-1111-1111-1111-111111111111%2C22222222-2222-2222-2222-222222222222&include_summary=true&include_count=true&search=warehouse&name=Test%20Geofence%201' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'X-Caller-Id: string' \
-H 'X-Esper-Tenant-Id: 497f6eca-6276-4993-bfeb-53cbbbba6f08'Response
- geofence_PolygonGeometry
- geofence_CircleGeometry
- example
- With device summary
{ "content": { "next": "/v1/geofences?offset=10&limit=10", "previous": null, "results": [ … ] } }