Loading...

GET /api/alerts/{deviceId}

The rules you configure in Plaspy for a tracker tell you which conditions Plaspy monitors and which notifications are configured for that vehicle. If a supervisor wants to know whether a van has a speed limit set, they can check the rule and its settings here.

Look up the device by ID and review the returned list of alerts and reminders. This list also gives you a starting point for an edit. You can keep the other rules when changing the one you need.

Request Details

GET /api/alerts/{deviceId}

Request Parameters

Path parameters

ParameterTypeRequiredDescription
deviceIdStringRequiredStringYesTracker identifier in the path. Use the id from the device list.

Send the request without a body. To look up alert events that have already occurred, use POST /api/devices/{deviceId}/alerts.

Authentication Required

You need access to the map page.

Send a valid bearer token in the authorization header. See Authentication.

Example Request

GET /api/alerts/123456789012345 HTTP/1.1 Host: api.plaspy.com Authorization: Bearer {token}

Response Parameters

deviceId identifies the requested tracker. alerts contains its rules, or [] if none are set. Each rule can include type (returned as a numeric string), name, dParameter, sParameter, and the notification channels. For a zone alert, dParameter identifies the zone using the zon- prefix. Keep the complete rules you need when saving the list again.

FieldTypePresenceDescription
deviceIdStringAlwaysStringAlwaysIdentifier of the tracker for this operation.
alertsObject arrayAlwaysObject arrayAlwaysAlert and reminder rules configured on the tracker.
apiUsageIntegerAlwaysIntegerAlwaysUnits charged for this request.
apiDailyUsageIntegerAlwaysIntegerAlwaysDaily usage before the units for this request are added.

Main fields in each rule

FieldTypePresenceDescription
idIntegerAlwaysIntegerAlwaysZero-based position of the rule in the device’s list.
typeStringAlwaysStringAlwaysNumeric rule type code returned as a string.
nameStringWhen setStringWhen setName identifying the rule.
dParameterStringWhen setStringWhen setValue of the numeric parameter. For a zone rule this is the public zon-… ID.
sParameterStringWhen setStringWhen setText parameter value, when applicable.
pushNotificationBooleanAlwaysBooleanAlwaysIndicates whether push notifications are enabled.
notifyEmailBooleanAlwaysBooleanAlwaysIndicates whether email notifications are sent to the recipients in email.
smsBooleanAlwaysBooleanAlwaysIndicates whether SMS notifications are sent to the numbers in phoneNumber.
whatsAppNotificationBooleanAlwaysBooleanAlwaysIndicates whether WhatsApp notifications are sent to the numbers in whatsAppNumbers.

Example HTTP 200 response (excerpt)

{ "deviceId": "123456789012345", "alerts": [ { "id": 0, "type": "6", "name": "Fleet speed limit", "dParameter": "80", "pushNotification": true } ], "apiUsage": 1, "apiDailyUsage": 24 }

Errors

FieldTypePresenceDescription
successBooleanDepends on the errorBooleanDepends on the errorIn the operation errors shown here, the value is false.
errorStringDepends on the errorStringDepends on the errorMessage explaining why the request was rejected.

HTTP 400 if the tracker does not exist in the account or is not visible to the user. HTTP 403 if map access is missing.

Example error

{ "success": false, "error": "One of the devices was not found in the account." }
Index
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).

Last modification: 2026-11-30 11:00:46