added
Camera Media Endpoint
about 4 years ago by Tyler Freckmann
The GET /fleet/vehicles/cameras/media/history endpoint has been officially released. It allows you to get images from all dashcams in your fleet. Only images are currently available.
curl --request GET 'https://api.samsara.com/fleet/vehicles/cameras/media/history' \
-d startTime='2020-11-02T08:00:00Z' \
-d endTime='2020-11-03T08:00:00Z' \
-G \
--header 'Authorization: Bearer <<token>>'
{
"data": [
{
"id": "212014918085975",
"name": "169633",
"externalIds": {
"samsara.serial": "GATFT4BSWY"
},
"cameras": [
{
"images": [
{
"captureTime": "2020-11-02T08:19:34.614Z",
"imageData": [
{
"url": "https://s3.samsara.com/samsara-dashcam-videos/123",
"cameraView": "frontFacing",
"urlExpiryTime": "2020-11-06T03:04:16.000Z"
}
]
}
]
}
]
}
],
"pagination": {
"endCursor": "",
"hasNextPage": false
}
}