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

# Fetch a compliance driving event by ID

**Purpose**: Use this API to fetch a single compliance driving event by its unique ID.

> 📘 IMPORTANT NOTES
>
> * Both `id` and `start_time` are required to uniquely locate the event because the underlying table is partitioned by time.
> * Use the `start_time` value returned for the event by the list endpoint.
> * 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\_event

* **Type**: Object
* **Description**: Contains the details of the compliance driving event.

### compliance\_driving\_event.id

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

### compliance\_driving\_event.start\_time

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

### compliance\_driving\_event.end\_time

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

### compliance\_driving\_event.status

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

### compliance\_driving\_event.type

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

### compliance\_driving\_event.duration

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

### compliance\_driving\_event.start\_kilometers

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

### compliance\_driving\_event.end\_kilometers

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

### compliance\_driving\_event.notes

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

### compliance\_driving\_event.distance\_km

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

### compliance\_driving\_event.annotation\_status

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

### compliance\_driving\_event.origin

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

### compliance\_driving\_event.origin\_lat

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

### compliance\_driving\_event.origin\_lon

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

### compliance\_driving\_event.destination

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

### compliance\_driving\_event.destination\_lat

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

### compliance\_driving\_event.destination\_lon

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

### compliance\_driving\_event.created\_at

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

### compliance\_driving\_event.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.

***

# 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/{id}": {
      "get": {
        "summary": "Fetch a compliance driving event by ID",
        "description": "",
        "operationId": "fetch-a-compliance-driving-event-by-id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "Specify the ID of the compliance driving event to view its details.",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "start_time",
            "in": "query",
            "description": "The timestamp of the driving event as returned by the \"Fetch a list of the compliance driving events\" endpoint.",
            "schema": {
              "type": "string",
              "format": "date"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "  {\n  \"compliance_driving_event\": {\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}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "compliance_driving_event": {
                      "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
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "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:6aa7aecc533829453ec5609a"
}
```