HOS Summary

Retrieve latest daily HOS summaries by driver

Retrieves the latest daily HOS summary for each driver with pagination metadata

get/v2/latestEldDailyCertifications

Request

  • Base URL: https://api.onswitchboard.com
  • URL: https://api.onswitchboard.com/v2/latestEldDailyCertifications
  • Auth: API key in header x-api-id and API key in header x-api-key

Query parameters

limitinteger

Maximum number of results to return per request (1-50)

pagestring

Deprecated. Use cursorId instead. Offset-based page number (0 or greater); page * limit must not exceed 500.

cursorIdstring

Object id from meta.nextCursor of the previous response. Returns the next page after this id (exclusive).

sort'asc' | 'desc'

Sort order for startTimeUTC. Options: "asc" (ascending) or "desc" (descending). Defaults to "desc".

Response

Successfully retrieved latest daily HOS summaries

Example response

{
  "data": [
    {
      "id": "2ntvSpRGIK",
      "driver": "2ntvSpRGIK",
      "startTimeUTC": "2020-01-01T00:00:00.000Z",
      "onDutyConsumed": 110000,
      "drivingTimeConsumed": 28800000,
      "caCycleTimeLeft": 110000,
      "caOnDutyTimeLeft": 110000,
      "caDriveTimeLeft": 110000,
      "caShiftOnDutyTimeLeft": 110000,
      "caShiftDriveTimeLeft": 110000,
      "caShiftHours": 110000,
      "usCycleTimeLeft": 110000,
      "usOnDutyTimeLeft": 110000,
      "usDriveTimeLeft": 110000,
      "shiftStartTime": "2024-01-15T08:00:00.000Z",
      "shiftEndTime": "2024-01-15T20:00:00.000Z"
    }
  ],
  "meta": {
    "count": 20,
    "limit": 20,
    "hasMore": true,
    "nextCursor": "abc123XYZ0",
    "previousCursor": "abc123XYZ0",
    "warning": "The \"cursor\" query parameter is deprecated; use \"cursorId\" instead."
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.