---
agentTools:
  projectIndex: https://developer-docs.gomotive.com/llms.txt
---

# Fetch a list of the compliance driving events

**Purpose**: Use this API to fetch a paginated list of compliance driving events for the authenticated company. Compliance driving events include regular driving, Personal Conveyance (PC), and Yard Move (YM) events.

> 📘 IMPORTANT NOTES
>
> * The date range between `start_date` and `end_date` cannot exceed 30 days.
> * `start_date` cannot be older than 2 years unless older-data access is enabled for the company.
> * Use -1 in driver\_ids to filter for events without an assigned driver.
> * The endpoint is available only when the compliance-public-api-compliance-driving-events-enabled feature flag is enabled for the company.
> * Results are scoped to the authenticated company. For group-scoped API keys, results are also limited to the groups assigned to the key.
> * `mcleod_id` is returned only when the company has McLeod integration enabled.

# Response Parameters

### compliance\_driving\_events

* **Type**: Array of Objects
* **Description**: List of compliance driving events.

### compliance\_driving\_events.id

* **Type**: Integer
* **Description**: Unique identifier for the driving event.

### compliance\_driving\_events.start\_time

* **Type**: String (Date-Time)
* **Description**: ISO 8601 timestamp when the event started.

### compliance\_driving\_events.end\_time

* **Type**: String (Date-Time)
* **Description**: ISO 8601 timestamp when the event ended.

### compliance\_driving\_events.status

* **Type**: String
* **Description**: Current status of the event (e.g., `complete`).

### compliance\_driving\_events.type

* **Type**: String
* **Description**: Type of event recorded (e.g., `driving`).

### compliance\_driving\_events.duration

* **Type**: Integer
* **Description**: Duration of the event in seconds.

### compliance\_driving\_events.start\_kilometers

* **Type**: Number (Float)
* **Description**: Odometer reading at the start of the event in kilometers.

### compliance\_driving\_events.end\_kilometers

* **Type**: Number (Float)
* **Description**: Odometer reading at the end of the event in kilometers.

### compliance\_driving\_events.notes

* **Type**: String / Null
* **Description**: Additional notes associated with the event.

### compliance\_driving\_events.distance\_km

* **Type**: Number (Float)
* **Description**: Total distance traveled during the event in kilometers.

### compliance\_driving\_events.annotation\_status

* **Type**: String
* **Description**: Annotation status of the event (e.g., `not_annotated`).

### compliance\_driving\_events.origin

* **Type**: String
* **Description**: Starting address or location description.

### compliance\_driving\_events.origin\_lat

* **Type**: Number (Float)
* **Description**: Latitude coordinate of the origin location.

### compliance\_driving\_events.origin\_lon

* **Type**: Number (Float)
* **Description**: Longitude coordinate of the origin location.

### compliance\_driving\_events.destination

* **Type**: String
* **Description**: Ending address or location description.

### compliance\_driving\_events.destination\_lat

* **Type**: Number (Float)
* **Description**: Latitude coordinate of the destination location.

### compliance\_driving\_events.destination\_lon

* **Type**: Number (Float)
* **Description**: Longitude coordinate of the destination location.

### compliance\_driving\_events.created\_at

* **Type**: String (Date-Time)
* **Description**: ISO 8601 timestamp when the record was created.

### compliance\_driving\_events.updated\_at

* **Type**: String (Date-Time)
* **Description**: ISO 8601 timestamp when the record was last updated.

### driver

* **Type**: Object
* **Description**: Details of the driver associated with the event.

### driver.id

* **Type**: Integer
* **Description**: Unique identifier for the driver.

### driver.first\_name

* **Type**: String
* **Description**: First name of the driver.

### driver.last\_name

* **Type**: String
* **Description**: Last name of the driver.

### driver.username

* **Type**: String
* **Description**: Username of the driver.

### driver.email

* **Type**: String
* **Description**: Email address of the driver.

### driver.driver\_company\_id

* **Type**: String
* **Description**: Company-assigned identifier for the driver.

### driver.status

* **Type**: String
* **Description**: Current status of the driver (e.g., `active`).

### driver.role

* **Type**: String
* **Description**: Role of the user in the organization (e.g., `driver`).

### vehicle

* **Type**: Object
* **Description**: Details of the vehicle used during the event.

### vehicle.id

* **Type**: Integer
* **Description**: Unique identifier for the vehicle.

### vehicle.number

* **Type**: String
* **Description**: Vehicle unit or fleet number.

### vehicle.year

* **Type**: Integer
* **Description**: Manufacturing year of the vehicle.

### vehicle.make

* **Type**: String
* **Description**: Manufacturer or make of the vehicle.

### vehicle.model

* **Type**: String
* **Description**: Model name of the vehicle.

### vehicle.vin

* **Type**: String
* **Description**: Vehicle Identification Number (VIN).

### vehicle.metric\_units

* **Type**: Boolean
* **Description**: Denotes if the vehicle uses metric units.

### pagination

* **Type**: Object
* **Description**: Details regarding the paginated response.

### pagination.per\_page

* **Type**: Integer
* **Description**: Number of records returned per page.

### pagination.page\_no

* **Type**: Integer
* **Description**: Current page number of the result set.

### pagination.total

* **Type**: Integer
* **Description**: Total count of matching records across all pages.

***

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Motive",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://api.gomotive.com"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "in": "header",
        "name": "x-api-key"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/v1/compliance_driving_events": {
      "get": {
        "summary": "Fetch a list of the compliance driving events",
        "description": "",
        "operationId": "fetch-a-list-of-the-compliance-driving-events",
        "parameters": [
          {
            "name": "driver_ids",
            "in": "query",
            "description": "Specify the ID of the driver or drivers for whom you want to fetch the compliance driving events. Use -1 for an unassigned driver. Default: [].",
            "schema": {
              "type": "array",
              "items": {
                "type": "integer",
                "format": "int32"
              },
              "default": [
                null
              ]
            }
          },
          {
            "name": "vehicle_ids",
            "in": "query",
            "description": "Specify the ID of vehicle or vehicles for which you want to fetch the compliance driving events. Default: [].",
            "schema": {
              "type": "array",
              "items": {
                "type": "integer",
                "format": "int32"
              },
              "default": [
                null
              ]
            }
          },
          {
            "name": "status",
            "in": "query",
            "description": "Specify the status of the compliance driving event. Allowed values are: <i>interrupted, in_progress, complete.</i>",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "type",
            "in": "query",
            "description": "Specify the type of the event. Allowed values are <i>pc, ym, driving.</i>",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "annotation_status",
            "in": "query",
            "description": "Specify the annotation status to filter the results accordingly. Accepted values: <b>not_annotated</b>, <b>annotated</b>, <b>pending_annotation</b>, <b>pending_assignment_with_annotation</b>. Default: [].",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "default": [
                "[]"
              ]
            }
          },
          {
            "name": "start_date",
            "in": "query",
            "description": "Start of the date range to query. Default: one week ago.",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "end_date",
            "in": "query",
            "description": "End of the date range to query. Default: today.",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "updated_after",
            "in": "query",
            "description": "Returns only events updated after this timestamp.",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "per_page",
            "in": "query",
            "description": "Number of results per page. Default: 25. Maximum: 100.",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "page_no",
            "in": "query",
            "description": "Page number to fetch. Default: 1.",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "  {\n  \"compliance_driving_events\": [\n    {\n      \"id\": 123456,\n      \"start_time\": \"2026-08-01T12:00:00.000Z\",\n      \"end_time\": \"2026-08-01T13:15:00.000Z\",\n      \"status\": \"complete\",\n      \"type\": \"driving\",\n      \"duration\": 4500,\n      \"start_kilometers\": 10234.5,\n      \"end_kilometers\": 10254.1,\n      \"notes\": null,\n      \"distance_km\": 19.6,\n      \"annotation_status\": \"not_annotated\",\n      \"origin\": \"123 Main St, Springfield, IL\",\n      \"origin_lat\": 39.7817,\n      \"origin_lon\": -89.6501,\n      \"destination\": \"456 Elm St, Springfield, IL\",\n      \"destination_lat\": 39.8003,\n      \"destination_lon\": -89.6437,\n      \"created_at\": \"2026-08-01T13:16:00.000Z\",\n      \"updated_at\": \"2026-08-01T13:16:00.000Z\",\n      \"driver\": {\n        \"id\": 789,\n        \"first_name\": \"Jane\",\n        \"last_name\": \"Doe\",\n        \"username\": \"jane.doe\",\n        \"email\": \"jane.doe@example.com\",\n        \"driver_company_id\": \"D-001\",\n        \"status\": \"active\",\n        \"role\": \"driver\"\n      },\n      \"vehicle\": {\n        \"id\": 456,\n        \"number\": \"T-100\",\n        \"year\": 2022,\n        \"make\": \"Freightliner\",\n        \"model\": \"Cascadia\",\n        \"vin\": \"1FUJGHDV8NLAA1234\",\n        \"metric_units\": false\n      }\n    }\n  ],\n  \"pagination\": {\n    \"per_page\": 25,\n    \"page_no\": 1,\n    \"total\": 1\n  }\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "compliance_driving_events": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "integer",
                            "example": 123456,
                            "default": 0
                          },
                          "start_time": {
                            "type": "string",
                            "example": "2026-08-01T12:00:00.000Z"
                          },
                          "end_time": {
                            "type": "string",
                            "example": "2026-08-01T13:15:00.000Z"
                          },
                          "status": {
                            "type": "string",
                            "example": "complete"
                          },
                          "type": {
                            "type": "string",
                            "example": "driving"
                          },
                          "duration": {
                            "type": "integer",
                            "example": 4500,
                            "default": 0
                          },
                          "start_kilometers": {
                            "type": "number",
                            "example": 10234.5,
                            "default": 0
                          },
                          "end_kilometers": {
                            "type": "number",
                            "example": 10254.1,
                            "default": 0
                          },
                          "notes": {},
                          "distance_km": {
                            "type": "number",
                            "example": 19.6,
                            "default": 0
                          },
                          "annotation_status": {
                            "type": "string",
                            "example": "not_annotated"
                          },
                          "origin": {
                            "type": "string",
                            "example": "123 Main St, Springfield, IL"
                          },
                          "origin_lat": {
                            "type": "number",
                            "example": 39.7817,
                            "default": 0
                          },
                          "origin_lon": {
                            "type": "number",
                            "example": -89.6501,
                            "default": 0
                          },
                          "destination": {
                            "type": "string",
                            "example": "456 Elm St, Springfield, IL"
                          },
                          "destination_lat": {
                            "type": "number",
                            "example": 39.8003,
                            "default": 0
                          },
                          "destination_lon": {
                            "type": "number",
                            "example": -89.6437,
                            "default": 0
                          },
                          "created_at": {
                            "type": "string",
                            "example": "2026-08-01T13:16:00.000Z"
                          },
                          "updated_at": {
                            "type": "string",
                            "example": "2026-08-01T13:16:00.000Z"
                          },
                          "driver": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "integer",
                                "example": 789,
                                "default": 0
                              },
                              "first_name": {
                                "type": "string",
                                "example": "Jane"
                              },
                              "last_name": {
                                "type": "string",
                                "example": "Doe"
                              },
                              "username": {
                                "type": "string",
                                "example": "jane.doe"
                              },
                              "email": {
                                "type": "string",
                                "example": "jane.doe@example.com"
                              },
                              "driver_company_id": {
                                "type": "string",
                                "example": "D-001"
                              },
                              "status": {
                                "type": "string",
                                "example": "active"
                              },
                              "role": {
                                "type": "string",
                                "example": "driver"
                              }
                            }
                          },
                          "vehicle": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "integer",
                                "example": 456,
                                "default": 0
                              },
                              "number": {
                                "type": "string",
                                "example": "T-100"
                              },
                              "year": {
                                "type": "integer",
                                "example": 2022,
                                "default": 0
                              },
                              "make": {
                                "type": "string",
                                "example": "Freightliner"
                              },
                              "model": {
                                "type": "string",
                                "example": "Cascadia"
                              },
                              "vin": {
                                "type": "string",
                                "example": "1FUJGHDV8NLAA1234"
                              },
                              "metric_units": {
                                "type": "boolean",
                                "example": false,
                                "default": true
                              }
                            }
                          }
                        }
                      }
                    },
                    "pagination": {
                      "type": "object",
                      "properties": {
                        "per_page": {
                          "type": "integer",
                          "example": 25,
                          "default": 0
                        },
                        "page_no": {
                          "type": "integer",
                          "example": 1,
                          "default": 0
                        },
                        "total": {
                          "type": "integer",
                          "example": 1,
                          "default": 0
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true,
  "_id": "66acf64a829e88001980fbf2:6aa7ac904099dfd3149014c4"
}
```