How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Samsara Hours Of Service API

The Hours Of Service API from Samsara — 3 operation(s) for hours of service.

Samsara Hours Of Service API is one of 90 APIs that Samsara publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include Hours of Service. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, and a GitHub repository.

This API exposes 3 operations across 3 paths, and defines 37 schemas. It is described by OpenAPI 3.0.1, at version 2024-11-18.

Requests are made against 2 base URLs: https://api.samsara.com/, https://api.eu.samsara.com/.

3 operations 3 paths 37 schemas 3 GET

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.0.1
API Version
2024-11-18
Base URL
https://api.samsara.com
Authentication
HTTP Bearer
Resource Areas
1

Authentication & Security 1

Samsara Hours Of Service API declares 1 security scheme for authenticating requests. It accepts HTTP bearer tokens (AccessTokenHeader). By default, every request must be authenticated.

Paths & Operations 3

Across 3 paths, the API surfaces 3 operations — 3 GET. Each is listed below with its method, path, parameters, and response codes.

Hours Of Service 3
GET
/fleet/hos/clocks
Get HOS Clocks
getHosClocks 5 params → 200default
GET
/fleet/hos/logs
Get HOS Logs
getHosLogs 6 params → 200default
GET
/fleet/hos/violations
Get All Driver HOS Violations
getHosViolations 7 params → 200401404405429500501502

Schemas 37

The contract defines 37 schemas that model the data the API accepts and returns. The most detailed are HosLogEntry (7 properties), HosViolationObjectResponseBody (6 properties), HosClocksForDriver (5 properties), HosClocks (4 properties). Each schema is shown below with its type and property counts.

HosLogsResponse
object
HOS logs and pagination info.
2 properties 2 required
HosLogsForDriver
object
List of HOS logs for a driver.
2 properties
HosDrive
object
Remaining durations for the HOS driving shift limits.
1 property
HosBreak
object
Remaining durations for the HOS rest break requirement.
1 property
time
string
UTC timestamp in RFC 3339 format. Example: 2020-01-27T07:06:25Z.
vehicleTinyResponse
object
A minified vehicle object.
3 properties
HosViolationsGetHosViolationsGatewayTimeoutErrorResponseBody
object
Gateway timeout
2 properties 2 required
HosViolationDayObjectResponseBody
object
2 properties 2 required
HosClocksForDriver
object
HOS clock values for a specific driver, including remaining times and violations.
5 properties
HosShift
object
Remaining durations and start time for the HOS on duty shift limits.
1 property
GoaPaginationResponseResponseBody
object
Pagination parameters.
2 properties 2 required
standardErrorResponse
object
Error response
2 properties
HosLogsForDrivers
array
List of HOS logs for the specified drivers.
HosViolationsGetHosViolationsBadGatewayErrorResponseBody
object
Bad Gateway
2 properties 2 required
HosLogLocation
object
Location associated with the duty status change
2 properties 2 required
HosViolationsGetHosViolationsServiceUnavailableErrorResponseBody
object
Service unavailable
2 properties 2 required
HosViolationsGetHosViolationsUnauthorizedErrorResponseBody
object
Unauthorized
2 properties 2 required
HosViolations
object
Durations the driver has been in violation of HOS rules. See [this page](https://www.samsara.com/fleet/eld-compliance/hours-of-service) for more information on…
2 properties
HosLogsList
array
List of HOS log entries.
HosViolationsObjectResponseBody
object
1 property 1 required
HosClocksForDrivers
array
List of HOS clocks for the specified drivers.
HosViolationObjectResponseBody
object
6 properties 6 required
HosClocksResponse
object
Drivers HOS clocks and pagination info.
2 properties 2 required
HosViolationsGetHosViolationsBadRequestErrorResponseBody
object
Bad Request parameters
2 properties 2 required
HosLogEntry
object
A single HOS log entry.
7 properties 1 required
driverTinyResponse
object
A minified driver object.
2 properties
HosViolationsGetHosViolationsNotFoundErrorResponseBody
object
Resource not found
2 properties 2 required
HosCycle
object
Remaining durations and start time for the HOS driving cycle.
3 properties
paginationResponse
object
Pagination parameters.
2 properties 2 required
HosClocks
object
Remaining durations and start times (where applicable) for various HOS rules. See [this page](https://www.samsara.com/fleet/eld-compliance/hours-of-service) fo…
4 properties
GoaDriverTinyResponseResponseBody
object
A minified driver object. This object is only returned if the route is assigned to the driver.
3 properties 1 required
HosViolationsGetHosViolationsInternalServerErrorResponseBody
object
An internal server error occurred
2 properties 2 required
CurrentDutyStatus
object
The current HOS status type and time the driver started being in this status.
1 property
HosViolationsGetHosViolationsNotImplementedErrorResponseBody
object
Requested endpoint is not yet implemented
2 properties 2 required
HosViolationsGetHosViolationsTooManyRequestsErrorResponseBody
object
Too many requests
2 properties 2 required
HosViolationsGetHosViolationsResponseBody
object
2 properties 2 required
HosViolationsGetHosViolationsMethodNotAllowedErrorResponseBody
object
Method not allowed
2 properties 2 required

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

samsara-hours-of-service-api-openapi.yml Raw ↑

Other APIs Samsara publishes across the network.

Samsara Activity API
Samsara Addresses API
Samsara Aemp API
Samsara Applications API
Samsara Assets API
Samsara Assignments API
Samsara Attributes API
Samsara Audit API
Samsara Beta A P Is API
Samsara Camera API
Samsara Cameras API
Samsara Cargo API
Where this information came from

This is an independent, third-party profile of Samsara Hours Of Service API, published by API Evangelist. We do not operate, host, resell, or support these APIs, and we are not affiliated with or endorsed by the company unless stated above. Everything here is built from publicly available information — the company's own site, developer portal, documentation, public repositories, and the specifications it publishes for public use. Nothing is obtained by breaching a system, defeating an access control, or using credentials.

The Kin Score and Agent Readiness rating are independently calculated assessments of a company's public API artifacts, scored against a published rubric. They are not certifications, endorsements, security assessments, or audits.

Corrections, re-scores, and removal are free — no partnership or purchase required, and you do not need to justify the request. A removed company is recorded as unrated, never scored zero for having asked. Acknowledgement within one business day; removal within two.

info@apievangelist.com · Read the full data-sourcing policy →
On a security or compliance team? Put security in the subject line and you will get a person, not a form — we will tell you exactly which public URLs this profile was built from.