This endpoint is still on our legacy API.
Get the HOS (hours of service) signin and signout logs for the specified driver. The response includes 4 fields that are now deprecated.
Note: If data is still being uploaded from the Samsara Driver App, it may not be completely reflected in the response from this endpoint. The best practice is to wait a couple of days before querying this endpoint to make sure that all data from the Samsara Driver App has been uploaded.
Submit Feedback: Likes, dislikes, and API feature requests should be filed as feedback in our API feedback form. If you encountered an issue or noticed inaccuracies in the API documentation, please submit a case to our support team.
To use this endpoint, select Read ELD Hours of Service (US) under the Compliance category when creating or editing an API token. Learn More.
curl --request GET \
--url https://api.samsara.com/v1/fleet/hos_authentication_logs \
--header 'Authorization: Bearer <token>'{
"authenticationLogs": [
{
"actionType": "signin",
"address": "THIS FIELD MAY NOT BE POPULATED",
"addressName": "THIS FIELD MAY NOT BE POPULATED",
"city": "THIS FIELD MAY NOT BE POPULATED",
"happenedAtMs": 1462881998034,
"state": "THIS FIELD MAY NOT BE POPULATED"
}
]
}Documentation Index
Fetch the complete documentation index at: https://samsara-showcase.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Driver ID to query.
Beginning of the time range, specified in milliseconds UNIX time.
End of the time range, specified in milliseconds UNIX time.
HOS authentication logs for the specified driver.
Show child attributes
curl --request GET \
--url https://api.samsara.com/v1/fleet/hos_authentication_logs \
--header 'Authorization: Bearer <token>'{
"authenticationLogs": [
{
"actionType": "signin",
"address": "THIS FIELD MAY NOT BE POPULATED",
"addressName": "THIS FIELD MAY NOT BE POPULATED",
"city": "THIS FIELD MAY NOT BE POPULATED",
"happenedAtMs": 1462881998034,
"state": "THIS FIELD MAY NOT BE POPULATED"
}
]
}