Skip to main content

List Faults

GET 

https://secure.fleetio.com/api/v1/faults

Returns a list of the Faults recorded for all vehicles in your account.

Request

Query Parameters

    start_cursor string

    The start cursor for Keyset pagination.

    per_page integer

    Possible values: >= 2 and <= 100

    The number of records per page to return.

    Default value: 50
    filter object

    The fields, operations, and values to filter the records by.

    name object
    oneOf
    likestringrequired
    external_id object
    eqstringrequired
    fault_rule_id object
    eqstringrequired
    vehicle_id object
    eqstringrequired
    status_id object
    includestringrequired
    code object
    eqstringrequired
    last_occurred_at object
    oneOf
    ltstringrequired
    created_at object
    oneOf
    ltstringrequired
    updated_at object
    oneOf
    ltstringrequired
    sort object

    The fields and direction to sort the results by.

    idSortAscDescDefaultDesc (string)

    Possible values: [asc, desc]

    Default value: desc
    last_occurred_atSortAscDesc (string)

    Possible values: [asc, desc]

    created_atSortAscDesc (string)

    Possible values: [asc, desc]

    updated_atSortAscDesc (string)

    Possible values: [asc, desc]

Responses

OK

Schema
    start_cursorstringnullable

    The current start cursor of the records returned.

    next_cursorstringnullable

    The next cursor to retrieve the next page of records.

    per_pageinteger

    The maxumum number of records returned.

    estimated_remaining_countinteger

    The number of remaining records including the returned records, up to a maximum of 500.

    filtered_by object[]

    The filters applied to the returned record set.

  • Array [
  • anyOf
    name object
    oneOf
    likestringrequired
  • ]
  • sorted_by object[]

    The sorts applied to the returned record set.

  • Array [
  • anyOf
    updated_atSortAscDesc (string)

    Possible values: [asc, desc]

  • ]
  • records object[]
  • Array [
  • idinteger
    account_idintegerrequired
    vehicle_idintegernullablerequired
    codestringrequired

    The diagnostic trouble code.

    countintegernullablerequired

    The number of times this Fault has occurred.

    descriptionstringnullablerequired

    A short description about the problem.

    external_idstringnullable

    An external identifier for the Fault, if applicable.

    last_occurred_atdate-timenullablerequired

    The date and time when the Fault last occurred.

    Example: 2023-03-14T13:46:27-06:00
    namestringnullablerequired

    The name or label for the Fault.

    statusstringrequired

    The status of the Fault.

    Possible values: [open, resolved, ignored]

    Default value: open
    sourcestringnullable

    The source or origin of the Fault.

    vehicle_archived_atdate-timenullablerequired

    The date and time when the associated Vehicle was archived, if applicable.

    Example: 2023-03-14T13:46:27-06:00
    fault_rule_idintegernullable
    is_sampleboolean

    Indicates if the Fault is sample data.

    idempotency_keystringnullable

    An optional key for idempotent operations.

    vehicle object

    A Vehicle

    idintegerrequired
    namestringrequired

    This vehicle's name.

    colorstringnullable

    The color of this Vehicle.

    license_platestringnullable

    The license plate number of this Vehicle.

    vinstringnullable

    The Vehicle Identification Number of this Vehicle.

    yearstringnullable

    This Vehicle's model year.

    makestringnullable

    The name of this Vehicle's manufacturer.

    modelstringnullable

    The name of the model of this Vehicle.

    trimstringnullable

    The trim level of this Vehicle.

    registration_expiration_monthintegernullable

    The month in which this Vehicle's registration expires.

    Possible values: >= 0 and <= 12

    registration_statestringnullable

    The state, province, or territory in which this Vehicle is registered.

    default_image_url_smallstringnullable

    The URL of a small-sized version of the default image for this Vehicle.

  • ]

Authorization: Authorization

name: Authorizationtype: apiKeyin: headerdescription: Prefix the value with "Token", for example: "Token 76cbe06c49a64".
You can generate a new API key [here](https://secure.fleetio.com/api_keys).
name: Account-Tokentype: apiKeyin: headerdescription: You can find your Account-Token [here](https://secure.fleetio.com/api_keys)
curl -L 'https://secure.fleetio.com/api/v1/faults' \
-H 'Accept: application/json' \
-H 'Authorization: <Authorization>' \
-H 'Account-Token: <Authorization>'
Request Collapse all
Base URL
https://secure.fleetio.com/api
Auth
Parameters
— query
— query
— query
name
external_ideq
fault_rule_ideq
vehicle_ideq
status_idinclude
codeeq
last_occurred_at
created_at
updated_at
— query
id
last_occurred_at
created_at
updated_at
ResponseClear

Click the Send API Request button above and see the response here!