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 catalogue lists the available alerts and reminders so you can find out what each type needs before creating a rule.

Look up the catalogue 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 catalogue shows km/h. If your user uses miles, saving a rule with 80 means 80 mph.

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": "Has been reached the requests limit, try more later." }
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:50:13