List the company's alerts
/alerts Query parameters
-
cursorstringOpaque pagination cursor
-
limitinteger -
langstringLanguage of the
labelfields, and of a probe’s default name (name: “Probe 3”, “Sonde 3”). Thecodevalues never vary. A crop with no translation falls back to its French name.
Response
Alerts, most recent first
-
dataarray of AlertListItem always presentMoisture threshold on a module’s summary curve. Below
threshold, the alert fires: an e-mail goes out to the recipients, then a reminder every day atreminderTimefor as long as it is neither resolved nor acknowledged. It resolves when moisture climbs back tothreshold+hysteresis.Show 17 attributes Hide attributes
-
idstring uuid always present -
companyIdinteger always present -
moduleIdinteger nullable always presentModule being watched.
-
parcelIdinteger nullable always presentParcel. ⚠️ Only a module’s measurements are evaluated: an alert with no
moduleIdnever fires. -
annotationIdstring uuid nullable always presentThe “wilting point” line the alert was born from (
source: annotation). Moving the line moves the threshold; deleting it disables the alert. -
thresholdstring always presentDecimal number sent as a STRING, with no loss of precision (
"11","25.5625"): to be converted client-side. -
hysteresisstring always presentDecimal number sent as a STRING, with no loss of precision (
"11","25.5625"): to be converted client-side. -
reminderTimestring always presentLOCAL time of the daily reminder (
HH:MM:SS), in the company’s time zone (timezoneofGET /company). -
sourcestring always presentmanual: created directly (POST /alerts).annotation: born from a “wilting point” line. -
isActiveboolean always presentfalse: disabled, no longer evaluated. -
createdBystring always presentCreator:
userIdof a member. -
createdAtstring date-time always present -
updatedAtstring date-time always present -
eventsarray of AlertEvent always presentThe last 10 events, most recent first. Full history:
GET /alerts/{id}/events.Show 9 attributes Hide attributes
-
idstring uuid always present -
alertIdstring uuid always present -
typestring always presenttriggered: moisture dropped below the threshold.resolved: it climbed back to the threshold plus the hysteresis. -
valueAtEventstring always presentMoisture measured at that instant, %.
-
thresholdAtEventstring always presentThreshold in force at that instant, %.
-
occurredAtstring date-time always present -
emailSentboolean always presentThe e-mail for this event went out.
-
acknowledgedAtstring date-time nullable always presentAcknowledgement (
POST /alerts/{id}/ack): reminders stop.null: not acknowledged. -
acknowledgedBystring nullable always presentWho acknowledged:
userIdof a member.
-
-
recipientsarray of object always presentShow 4 attributes Hide attributes
-
idstring uuid always present -
alertIdstring uuid always present -
userIdstring always presentE-mail recipient:
userIdof a member. -
userobject always presentShow 5 attributes Hide attributes
-
idstring always present -
namestring nullable always present -
lastNamestring nullable always present -
emailstring email always present -
imagestring nullable always presentAvatar URL.
-
-
-
parcelobject nullable always presentShow 2 attributes Hide attributes
-
idinteger always present -
namestring always present
-
-
moduleobject nullable always presentShow 4 attributes Hide attributes
-
idinteger always present -
uidstring always present -
namestring nullable always presentName of the probe, as on
Module; the default name followslang. -
serialHexstring nullable always present
-
-
-
next_cursorstring nullable always presentCursor for the next page, to be passed back as is in
cursor.null: last page.
Errors
- 401
Not authenticated
- 403
Insufficient scope, or resource outside your company