Gets a list of alerts generated by a device in a date range up to 1 hour.
HTTP request
POST /api/device/{deviceId}/Alerts
Path parameters
Parameter | Type | Description |
---|---|---|
deviceId | string | Device identification |
Headers
Parameter | Value | Description |
---|---|---|
Authorization | Bearer {token} | Token generated on authentication |
Request body
{
"from": "2022-10-30T17:25:08.520Z",
"to": "2022-10-30T17:25:08.520Z",
"alertName": "string"
}
Parameter | Type | Description |
---|---|---|
from | datetime | Date from requested |
to | datetime | Date to requested |
alertName | string | Optional, alert name to query |
Response body
{
"success": true,
"error": "string",
"alerts": [
{
"dateTime": "2022-10-30T17:25:08.527Z",
"latitude": 0,
"longitude": 0,
"text": "string",
"email": true,
"sms": true,
"alerts": [
"string"
]
}
]
}
Parameter | Type | Description |
---|---|---|
success | bool | Return if operation was successful |
error | string | Text with description of the error |
alerts | array | List of alerts |
alerts[].dateTime | datetime | Alert date |
alerts[].latitude | double | Alert latitude |
alerts[].longitude | double | Alert longitude |
alerts[].text | string | Alert text |
alerts[].email | bool | Notified by email |
alerts[].sms | bool | Notified by SMS |
alerts[].alerts | array | List of triggered alerts |
Índice
- Welcome to Plaspy help
- Map
- Reports
- Left panel
- Show Route
- GeoFences
- Alerts
- Mileage Calculation
- Atributes
- Enable map notifications
- Statistics
- Devices
- Alerts
- Enable Telegram notifications
- Email alerts sending limits
- Groups
- Share Access
- Users
- Settings
- SMS
- Activation Code
- Line Renewal
- Points redemption
- Developers
- API Activation
- Rest API
- Authentication
- Devices
- Device
- Last Location
- Locations
- Alerts
- Embed on my website
- Embed the map on my website
- Mobile App
- Advanced Mobile App
- Mobile application with push notifications
- API (Obsolete)
- Operations and results
- Format of requests and responses
- Example
- Sample Codes
Questions
We answer all support request within 24 business hours approximately, If you have a question that needs an immediate resolution, please contact us by other way.
We answer you in business hours, as soon as possible. We are located in Bogotá, Colombia, time zone (GMT-5).