---
title: "Get all geofences"
method: GET
path: "/v1/locate/geofences"
tags: ["Device Locator"]
---

# Get all geofences

`GET /v1/locate/geofences`

## Request

- Base URL: `https://api.1nce.com/management-api`
- URL: `https://api.1nce.com/management-api/v1/locate/geofences`
- Auth: HTTP bearer

Get an overview of all geofences.
Rate limits apply for this endpoint. See [Rate Limit Policy](https://help.1nce.com/api/api-rate-limits/).

## Query parameters

- `pageSize` integer
- `page` integer
- `name` string
- `deviceId` string
- `scope` 'global' | 'device'

## Response `200`

OK

- GetAllGeofenceResponseschema: Response to get all geofences request.
  - `items` GenericGeofenceData[], required: List of geofences
    - `id` string, required: Identifier of the geofence
    - `name` string, required: The name of the geofence
    - `created` string, date-time, required: When the Geofence was created
    - `updated` string, date-time, required: When the Geofence was last updated
    - `deviceId` unknown, required
    - `type` 'polygon' | 'circle', required: The type of Geofence
  - `page` number, required: Current page number
  - `pageAmount` number, required: Total number of pages

## Other responses

- `400`: Bad Request
- `429`: Too Many Requests
- `500`: Internal Server Error

---

[API](https://skmtc.dev/1nce/apis/1nce-os.md) - [All operations](https://skmtc.dev/1nce/apis/1nce-os/llms.txt) - [OpenAPI document](https://skmtc.dev/1nce/apis/1nce-os/revisions/f1aabbc6aeea?raw)
