This endpoint is still on our legacy API.
Get historical data for machine objects. This method returns a set of historical data for all machines.
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 Write Industrial under the Industrial category when creating or editing an API token. Learn More.
curl --request POST \
--url https://api.samsara.com/v1/machines/history \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"endMs": 1462881998034,
"startMs": 1462878398034
}
'{
"machines": [
{
"id": 1,
"name": "1/3 HP Motor",
"vibrations": [
{
"X": 0.01,
"Y": 1.23,
"Z": 2.55,
"time": 1453449599999
}
]
}
]
}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.
Time range to query for events
List of machine results objects, each containing a time and a datapoint.
Contains the results for a machine history request
Show child attributes
curl --request POST \
--url https://api.samsara.com/v1/machines/history \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"endMs": 1462881998034,
"startMs": 1462878398034
}
'{
"machines": [
{
"id": 1,
"name": "1/3 HP Motor",
"vibrations": [
{
"X": 0.01,
"Y": 1.23,
"Z": 2.55,
"time": 1453449599999
}
]
}
]
}