Retrieve a list of the alarms from your devices. Partners can receive a list of alarms from a specific organization by providing the organization ID. Alarms are saved in the cloud for 45 days.
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/alarms?limit=1&offset=1&organizationId=17&imei=12345678&name=Mike&alarmDefinitionName=string&alarmDefinitionSeverity=10&read=string&unread=string&open=string&close=string&sort=name&order=asc' \ -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'
{- "data": [
- {
- "id": 625,
- "details": "cyclic_recorder_status: 4, last_video_record_time: 1600683797",
- "organizationId": 17,
- "organizationName": "Company Name",
- "partnerId": 1,
- "partnerName": "James",
- "userId": 32,
- "alarmDefinitionId": 625,
- "createdAt": "2019-08-24T14:15:22Z",
- "lastReadAt": "2019-08-24T14:15:22Z",
- "lastCloseAt": "2019-08-24T14:15:22Z",
- "comments": [
- {
- "details": "comment about the alarm",
- "id": 34,
- "alarmId": 625,
- "createdByAudienceName": "surfsight",
- "createdById": 9,
- "createdAt": "2019-08-24T14:15:22Z",
- "commentorName": "Commentor name"
}
], - "actions": [
- {
- "type": "open",
- "id": 125,
- "alarmId": 625,
- "createdByAudienceName": "surfsight",
- "createdById": 625,
- "updatedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z"
}
]
}
], - "metadata": {
- "count": 56,
- "limit": 60,
- "offset": 10
}
}