Retrieve the health reports of your devices. Partners can receive the health reports of a specific organization by providing the organization ID.
Successful operation
Bad request error
Unauthorized error
Forbidden error
Not found error
Internal server error
curl -i -X GET \ 'https://api-prod.surfsight.net/v2/device-health?limit=1&offset=1&lastConnectedAtStart=2019-08-24T14%3A15%3A22Z&lastConnectedAtEnd=2019-08-24T14%3A15%3A22Z&lastRecordingUpdatedAtStart=2019-08-24T14%3A15%3A22Z&lastRecordingUpdatedAtEnd=2019-08-24T14%3A15%3A22Z&lastRecordingHealth=1&organizationId=17&imei=12345678&name=Mike&sort=name&order=asc' \ -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'
{- "data": [
- {
- "name": "Aragorn's car",
- "imei": "357660101000198",
- "organizationId": 17,
- "partnerId": 1,
- "lastConnectedAt": "2019-08-24T14:15:22Z",
- "lastRecordingHealth": true,
- "lastRecordingUpdatedAt": "2019-08-24T14:15:22Z",
- "alarms": [
- {
- "code": "133",
- "details": "SD Card is not mounted, the dashcam is not recording video"
}
], - "auxNum": 0,
- "calibrationCompleted": true,
- "auxiliaryCameras": [
- {
- "id": "51",
- "lastConnectedAt": "2021-12-14T14:09:53.876Z",
- "auxSerial": "L7660101000198"
}
]
}
], - "metadata": {
- "count": 56,
- "limit": 60,
- "offset": 10
}
}