---
title: "List Fault Code Events"
method: GET
path: "/fault-codes/events"
tags: ["Fault Codes"]
---

# List Fault Code Events

`GET /fault-codes/events`

List all fault code events detected by the provider.

## Query parameters

- `cursor` string, cursor
- `limit` integer
- `modifiedAfter` string, date-time
- `modifiedBefore` string, date-time
- `startAt` string, date-time — [ISO 8601](https://www.w3.org/TR/NOTE-datetime) date
- `endAt` string, date-time — [ISO 8601](https://www.w3.org/TR/NOTE-datetime) date
- `vehicleIds` string
- `expand` 'vehicle'
- `raw` boolean

## Headers

- `X-Application-Id` string
- `Connection-Token` string, required

## Response `200`

OK

- object
  - `results` union[], required
    - union
      - object
        - `id` string, ulid, required
        - `provider` string, required — Every provider has a unique code to identify it across Terminal's system. You can find each provider's code under [provider details](/providers).
        - `vehicle` union, required — Entities in Terminal are expandable. Using the `expand` query parameter you can choose to ingest just an ID or the full entity details.
          - string, ulid — Unique identifier for the vehicle in Terminal.
          - object
            - `id` string, ulid, required — Unique identifier for the vehicle in Terminal.
        - `protocol` 'obdii', required — The diagnostic protocol used
        - `status` 'open' | 'pending' | 'closed', required — The status of the fault code at the time of the event. Some providers do not report closed statuses.
        - `code` string, required — The fault code identifier. For OBD-II systems: alphanumeric DTC codes (P0087, U0046, C0123, B1234). For J1939 systems: SPN-FMI format (SPN3031-FMI9) or derived codes from SPN/FMI combinations.
        - `description` string — Human-readable description of the fault
        - `observedAt` string, date-time, required — [ISO 8601](https://www.w3.org/TR/NOTE-datetime) date
        - `milStatus` 'on' | 'off' — The Malfunction Indicator Lamp (MIL) status of the vehicle at the time the fault code was observed
        - `obdii` object, required — OBD-II Diagnostic Trouble Code information for light/medium duty vehicles. Contains standardized alphanumeric codes like P0087, U0046, C0123, B1234.
          - `code` string, required — Alphanumeric DTC code (e.g., P0087, U0046)
          - `description` string — Human-readable description of the DTC
        - `j1939` object — J1939 fault code information for heavy-duty vehicles. FMI (Failure Mode Identifier) indicates the specific nature of the fault (0-31 numeric codes).
          - `fmi` integer — Failure Mode Identifier (FMI) - numeric code (0-31) indicating the specific nature of the fault
          - `fmiDescription` string — Human-readable description of the FMI failure mode
          - `spn` integer, required — Suspect Parameter Number (SPN) - identifies the specific parameter/system affected
          - `spnDescription` string — Human-readable description of the SPN parameter/system
          - `occurrenceCount` integer — The occurrence count reported by the provider at the time the fault code was observed
          - `sourceAddress` integer — The source address of the fault code
        - `metadata` object, required — Internal metadata about the record.
          - `addedAt` string, date-time, required — The date and time the record was ingested into Terminal. Note: this is not the date and time the record was created in the provider's system.
          - `modifiedAt` string, date-time, required — The date and time the record was last updated in Terminal. Note: this is not the date and time the record was updated in the provider's system.
        - `raw` object[]
          - `provider` string, required
          - `schema` string, required
          - `extractedAt` string, required
          - `data` object, required
      - object
        - `id` string, ulid, required
        - `provider` string, required — Every provider has a unique code to identify it across Terminal's system. You can find each provider's code under [provider details](/providers).
        - `vehicle` union, required — Entities in Terminal are expandable. Using the `expand` query parameter you can choose to ingest just an ID or the full entity details.
          - string, ulid — Unique identifier for the vehicle in Terminal.
          - object
            - `id` string, ulid, required — Unique identifier for the vehicle in Terminal.
        - `protocol` 'j1939', required — The diagnostic protocol used
        - `status` 'open' | 'pending' | 'closed', required — The status of the fault code at the time of the event. Some providers do not report closed statuses.
        - `code` string, required — The fault code identifier. For OBD-II systems: alphanumeric DTC codes (P0087, U0046, C0123, B1234). For J1939 systems: SPN-FMI format (SPN3031-FMI9) or derived codes from SPN/FMI combinations.
        - `description` string — Human-readable description of the fault
        - `observedAt` string, date-time, required — [ISO 8601](https://www.w3.org/TR/NOTE-datetime) date
        - `milStatus` 'on' | 'off' — The Malfunction Indicator Lamp (MIL) status of the vehicle at the time the fault code was observed
        - `obdii` object — OBD-II Diagnostic Trouble Code information for light/medium duty vehicles. Contains standardized alphanumeric codes like P0087, U0046, C0123, B1234.
          - `code` string, required — Alphanumeric DTC code (e.g., P0087, U0046)
          - `description` string — Human-readable description of the DTC
        - `j1939` object, required — J1939 fault code information for heavy-duty vehicles. FMI (Failure Mode Identifier) indicates the specific nature of the fault (0-31 numeric codes).
          - `fmi` integer — Failure Mode Identifier (FMI) - numeric code (0-31) indicating the specific nature of the fault
          - `fmiDescription` string — Human-readable description of the FMI failure mode
          - `spn` integer, required — Suspect Parameter Number (SPN) - identifies the specific parameter/system affected
          - `spnDescription` string — Human-readable description of the SPN parameter/system
          - `occurrenceCount` integer — The occurrence count reported by the provider at the time the fault code was observed
          - `sourceAddress` integer — The source address of the fault code
        - `metadata` object, required — Internal metadata about the record.
          - `addedAt` string, date-time, required — The date and time the record was ingested into Terminal. Note: this is not the date and time the record was created in the provider's system.
          - `modifiedAt` string, date-time, required — The date and time the record was last updated in Terminal. Note: this is not the date and time the record was updated in the provider's system.
        - `raw` object[]
          - `provider` string, required
          - `schema` string, required
          - `extractedAt` string, required
          - `data` object, required
  - `next` string, cursor — Cursor used for pagination.

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `429` — Too Many Requests
- `500` — Internal Server Error
- `504` — Gateway Timeout Error

---

[API](https://skmtc.dev/withterminal/apis/terminal-telematics-api.md) · [All operations](https://skmtc.dev/withterminal/apis/terminal-telematics-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/withterminal/terminal-telematics-api/revisions/90249c4a1739/schema)
