Loading...

GET /api/alerts/{deviceId}

The rules you configure in Net Domain Technologies for a tracker tell you which conditions Net Domain Technologies 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.
apiDailyUsageIntegerAlwaysIntegerAlwaysAPI units the user had used today before this request.
apiDeviceDailyUsageIntegerAlwaysIntegerAlwaysAPI units all users had used for this tracker today before this request.

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, "apiDeviceDailyUsage": 12 }

Errors

The call uses both the user’s allowance and the tracker’s shared allowance. When either is exhausted, the API returns HTTP 400 with success set to false. These are examples of the error field.

  • User — Your user has reached its daily API request limit of 4000 requests (used 4000). The limit resets at 00:00 UTC.
  • Tracker — The device 'VAN-01' has reached its daily API request limit of 2000 requests (used 2000). The limit resets at 00:00 UTC.
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
Last modification: 2026-11-30 22:51:02