Loading...

GET /api/alerts/types

An alert type defines the condition a rule can detect. A speed rule needs a threshold, while other types take different inputs. The catalog lists the available alerts and reminders so you can find out what each type needs before creating a rule.

Look up the catalog when building an alert setup form, for example. Show the type’s name and description to the user, then use its identifier and the listed parameters when submitting the rule for a device.

Request Details

GET /api/alerts/types

Request Parameters

Send the request without parameters or a body.

Authentication Required

API authentication is required.

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

Example Request

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

Response Parameters

When configuring a speed limit, interpret dParameter in your user’s units. The catalog shows km/h. If your user uses miles, saving a rule with 80 means 80 mph.

The request uses one unit of the user’s daily allowance. The response is an array with no apiUsage or apiDailyUsage fields. Each entry contains type, name, description, and group. When applicable, dParameter and sParameter describe the type’s parameters, and dParameterType and sParameterType identify their formats. Use type exactly as returned, regardless of the language of the display text.

FieldTypePresenceDescription
typeStringAlwaysStringAlwaysType name you can send when configuring a rule.
nameStringWhen setStringWhen setDisplay name of the type.
descriptionStringWhen setStringWhen setCondition that triggers the alert.
groupStringAlwaysStringAlwaysCategory to which the rule belongs.
dParameterStringWhen setStringWhen setLabel for the numeric parameter, when applicable.
dParameterTypeStringWhen setStringWhen setExpected format of the numeric parameter.
sParameterStringWhen setStringWhen setLabel for the text parameter, when applicable.
sParameterTypeStringWhen setStringWhen setExpected format of the text parameter.

Example HTTP 200 response (excerpt)

[ { "type": "ExcesoVelocidad", "name": "Speed limit (Km/h)", "description": "Triggers an alert when the device exceed the speed limit", "group": "Generales", "dParameter": "Km/h", "dParameterType": "UInteger" } ]

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 401 if the bearer token is missing or invalid. When the usage limit has been reached, the API returns HTTP 400.

Example error

{ "success": false, "error": "Your user has reached its daily API request limit of 4000 requests (used 4000). The limit resets at 00:00 UTC." }
Index
Last modification: 2026-11-30 22:50:56