---
title: "List the Geofence events"
method: GET
path: "/v1/geofences/events"
---

# List the Geofence events

`GET /v1/geofences/events`

## Request

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

## Query parameters

- `start_date` string, date
- `end_date` string, date
- `geofence_ids[]` integer[]
- `driver_ids[]` integer[]
- `vehicle_ids[]` integer[]
- `updated_after` string, date
- `per_page` integer
- `page_no` integer

## Response `200`

200

- object
  - `geofence_events` object[]
    - `geofence_event` object
      - `id` integer
      - `geofence_id` integer
      - `start_time` string
      - `end_time` string
      - `duration` integer
      - `vehicle` object
        - `id` integer
        - `number` string
        - `year` string
        - `make` string
        - `model` string
        - `vin` string
        - `metric_units` boolean
      - `start_driver` object
        - `id` integer
        - `first_name` string
        - `last_name` string
        - `username` unknown
        - `email` string
        - `driver_company_id` unknown
        - `status` string
        - `role` string
      - `end_driver` object
        - `id` integer
        - `first_name` string
        - `last_name` string
        - `username` unknown
        - `email` string
        - `driver_company_id` unknown
        - `status` string
        - `role` string
  - `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)
