---
title: "List the locations with Geofences"
method: GET
path: "/v1/geofences"
---

# List the locations with Geofences

`GET /v1/geofences`

## Request

- Base URL: `https://api.gomotive.com`
- URL: `https://api.gomotive.com/v1/geofences`
- Auth: API key in header `x-api-key`
- TypeScript: <https://skmtc.dev/gomotive/apis/motive/docs/v1/geofences/get.ts> (a function with typed inputs; its response is checked against the schema)

## Query parameters

- `name` string
- `category` string
- `status` string
- `updated_after` string, date
- `per_page` integer
- `page_no` integer

## Response `200`

200

- object
  - `geofences` object[]
    - `geofence` object
      - `id` integer
      - `name` string
      - `category` string
      - `status` string
      - `address` string
      - `location_points` object[]
        - `lat` number
        - `lon` number
  - `pagination` object
    - `per_page` integer
    - `page_no` integer
    - `total` integer

## Other responses

- `400`: 400

---

[API](https://skmtc.dev/gomotive/apis/motive.md) - [All operations](https://skmtc.dev/gomotive/apis/motive/llms.txt) - [OpenAPI document](https://skmtc.dev/gomotive/apis/motive/revisions/c71780e497f5?raw)
