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 Hos API

The Hos API from Samsara — 6 operation(s) for hos.

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

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

This API exposes 6 operations across 6 paths, and defines 61 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/.

6 operations 6 paths 61 schemas 5 GET1 POST

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 Hos API declares 1 security scheme for authenticating requests. It accepts HTTP bearer tokens (AccessTokenHeader). By default, every request must be authenticated.

Paths & Operations 6

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

Hos 6
GET
/fleet/hos/clocks
Get HOS Clocks
getHosClocks 5 params → 200default
GET
/fleet/hos/daily-logs
Get All Driver HOS Daily Logs
getHosDailyLogs 8 params → 200401404405429500501502
GET
/fleet/hos/logs
Get HOS Logs
getHosLogs 6 params → 200default
GET
/fleet/hos/violations
Get All Driver HOS Violations
getHosViolations 7 params → 200401404405429500501502
POST
/v1/fleet/drivers/{driver_id}/hos/duty_status
Set a Duty Status for a Specific Driver
setCurrentDutyStatus 1 param body → 200default
GET
/v1/fleet/hos_authentication_logs
Get HOS Signin and Signout
V1getFleetHosAuthenticationLogs 3 params → 200default

Schemas 61

The contract defines 61 schemas that model the data the API accepts and returns. The most detailed are LogMetaDataObjectResponseBody (13 properties), PendingDutyStatusDurationsObjectResponseBody (8 properties), DutyStatusDurationObjectResponseBody (8 properties), HosLogEntry (7 properties). Each schema is shown below with its type and property counts.

V1ErrorResponse
string
Error message describing why the request failed.
LogMetaDataObjectResponseBody
object
The metadata of the log.
13 properties
HosLogsResponse
object
HOS logs and pagination info.
2 properties 2 required
HosDailyLogsGetHosDailyLogsBadGatewayErrorResponseBody
object
Bad Gateway
2 properties 2 required
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
HosDailyLogsGetHosDailyLogsNotFoundErrorResponseBody
object
Resource not found
2 properties 2 required
HosViolationDayObjectResponseBody
object
2 properties 2 required
VehicleResponseResponseBody
object
A vehicle object
6 properties
HosDailyLogsGetHosDailyLogsTooManyRequestsErrorResponseBody
object
Too many requests
2 properties 2 required
HosDailyLogsGetHosDailyLogsNotImplementedErrorResponseBody
object
Requested endpoint is not yet implemented
2 properties 2 required
HosDailyLogsGetHosDailyLogsResponseBody
object
2 properties 2 required
DriverWithTimezoneEldSettingsObjectResponseBody
object
The driver the log applies to.
5 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.
HosDailyLogsGetHosDailyLogsInternalServerErrorResponseBody
object
An internal server error occurred
2 properties 2 required
HosViolationsGetHosViolationsBadGatewayErrorResponseBody
object
Bad Gateway
2 properties 2 required
V1HosAuthenticationLogsResponse_authenticationLogs
object
6 properties
HosViolationsGetHosViolationsServiceUnavailableErrorResponseBody
object
Service unavailable
2 properties 2 required
DistanceTraveledObjectResponseBody
object
The distance traveled information of the log.
3 properties
HosLogLocation
object
Location associated with the duty status change
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
HosDailyLogsGetHosDailyLogsServiceUnavailableErrorResponseBody
object
Service unavailable
2 properties 2 required
HosViolationsGetHosViolationsBadRequestErrorResponseBody
object
Bad Request parameters
2 properties 2 required
HosLogEntry
object
A single HOS log entry.
7 properties 1 required
HosDailyLogsGetHosDailyLogsBadRequestErrorResponseBody
object
Bad Request parameters
2 properties 2 required
driverTinyResponse
object
A minified driver object.
2 properties
HosDailyLogsGetHosDailyLogsGatewayTimeoutErrorResponseBody
object
Gateway timeout
2 properties 2 required
V1HosAuthenticationLogsResponse
object
1 property
HosViolationsGetHosViolationsNotFoundErrorResponseBody
object
Resource not found
2 properties 2 required
PendingDutyStatusDurationsObjectResponseBody
object
What the duty status durations on the drivers log would be if all pending carrier edits are accepted by the driver.
8 properties
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
EldSettingsObjectResponseBody
object
The driver's ELD settings.
1 property
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
DutyStatusDurationObjectResponseBody
object
The currently applied duty status durations on the driver's log.
8 properties
DriverRulesetObjectResponseBody
object
5 properties
CurrentDutyStatus
object
The current HOS status type and time the driver started being in this status.
1 property
HosLogsForDriver
object
List of HOS logs for a driver.
2 properties
HosViolationsGetHosViolationsNotImplementedErrorResponseBody
object
Requested endpoint is not yet implemented
2 properties 2 required
HosViolationsGetHosViolationsTooManyRequestsErrorResponseBody
object
Too many requests
2 properties 2 required
HosDailyLogsGetHosDailyLogsMethodNotAllowedErrorResponseBody
object
Method not allowed
2 properties 2 required
HosViolationsGetHosViolationsResponseBody
object
2 properties 2 required
inline_object_1
object
5 properties 1 required
HosViolationsGetHosViolationsMethodNotAllowedErrorResponseBody
object
Method not allowed
2 properties 2 required
HosDailyLogsGetHosDailyLogsUnauthorizedErrorResponseBody
object
Unauthorized
2 properties 2 required
HosDailyLogsObjectResponseBody
object
7 properties 3 required

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

samsara-hos-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 Hos 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.