Overview
Akuasense API 1.3.0-health-vbat
Akuasense REST API — read plus limited write. Authentication by API key (x-api-key). Data is scoped to the key’s company. Writes require an OWNER/MANAGER role (the key’s creator) and accept Idempotency-Key. Times in ISO 8601 UTC; measurements carry their unit; reference data as { code, label }.
Irrigation (since 1.0.2): logging water applications at the probe, versioned setups and schedules. Two things to know before integrating:
- Two figures in millimetres.
waterMmis the dose over the total area — comparable to rainfall, to ETc or to the water meter.waterMmWettedis the dose in the wetted zone, where the probe is installed: that is the one that explains the observed rise in moisture. Under drip irrigation the ratio is roughly 1 to 3. - Millimetres are frozen at write time, using the equipment valid on the date of the watering and a snapshot of the parameters used. Correcting an emitter flow rate next year will not rewrite history.
Logging refuses the inconsistent, never the incomplete: a watering whose dose cannot be computed is still recorded, with waterMm at null, and warnings says why.
Sensor error codes (since 1.0.4): a sensor that does not respond records a code instead of a measurement. The series (/measurements, /measurements/weighted, /measurements/latest, the /stream feed, MCP tools) serve them as is, without removing or flagging them. In temperature they are recognisable: −50 °C or below. In moisture they are not: once calibrated, they come out as normal-looking values, or pinned to saturation (_vwc_max at 100), and can pull the weighted series down to 0. A moisture code almost always falls on a reading where the temperature is also in error at the same instant: that is the most reliable clue. The water status (/agronomic-state) detects them at the latest reading: sensorError becomes true, moistureZone, state and value become null.
Annotation units (since 1.0.5): on moisture curves, an annotation belongs to the unit it was drawn in — unit: vwc (default), vwc_max or mm — and is only shown in that unit. Existing annotations are in vwc. Agronomic thresholds are set in vwc: that is how the alert reads them. Only the wilting point of the humidity curve arms an alert; on any other curve it is just a marker.
Probe names (since 1.0.6): a module carries name, the name the hub shows it under — the one the customer gave it, otherwise its default name, “Probe 3” or “Sonde 3” depending on lang. It appears on /modules, /modules/{id} and on the module of an alert (/alerts). It is changed in the hub, not through the API. To find a module again from one call to the next, keep its id: the name can change, and the default name follows the language.
Gateways (since 1.0.7): GET /gateways lists the 4G gateways attached to the company, with their serial number, their state (last transmission, battery, signal) and the modules plugged into them. Until now a gateway only showed through its modules (currentGateway): a gateway registered but not yet installed stayed invisible.
Moisture zones (since 1.1.0): GET /modules/{id}/agronomic-state returns the water status in five zones (moistureZone: excess_water, comfort, caution, water_stress, unavailable_water), computed from the soil declared at each depth and from the crop, following the FAO-56 definitions — the thresholds are in zoneThresholds. The thresholds drawn by hand on the curve move to drawnThresholds. Deprecated, served unchanged until 30 April 2027 at least: state (replaced by moistureZone), fieldCapacity and wiltingPoint (replaced by drawnThresholds). The response carries the Deprecation, Sunset and Link headers.
Probe moved to another gateway (since 1.1.1): a gateway left switched on after a probe has been unplugged from it may keep sending that probe’s identifier, with 0 in moisture and −50 °C at every depth. When the probe is meanwhile transmitting through another gateway, these readings are no longer served — not in the series (/measurements, /measurements/weighted), not as the latest reading (/measurements/latest, /agronomic-state), not in the /stream feed — and no longer change the module’s currentGateway, hence neither /health nor /power. A probe unplugged from its only gateway keeps its error readings, as described above: that is the sign it no longer measures.
Root depths (since 1.1.2): the catalogue follows FAO-56 Rev.1 (2025) for annual crops and, for trees and vines, the zone holding most of the roots under drip irrigation: root_depth_min_cm and root_depth_max_cm change for 32 crops. zr_cap_cm and zrCapCm become the depth observed on the plot: it replaces the crop’s, downwards as well as upwards, instead of capping it. Field names do not change.
Gateway battery voltage (since 1.2.0): GET /gateways returns vbat, the battery voltage at the last transmission, in volts, alongside soc, which is derived from it.
Battery voltage in gateway health (since 1.3.0): GET /modules/{id}/health also returns vbat, the same value as GET /gateways.
Operations
reference
modules
- GET
/modulesList the company's modules - GET
/modules/{id}Module detail - GET
/modules/{id}/healthHealth (battery, signal, status) - GET
/modules/{id}/soil-metaMax saturation (Y-axis ceiling, %) - GET
/modules/{id}/agronomic-stateWater status (moisture zone + thresholds) - GET
/modules/{id}/cropCurrent crop - PUT
/modules/{id}/cropDeclare crop + sowing date, observed depth, or manual depth.
gateways
measurements
annotations
irrigation
- GET
/modules/{moduleId}/irrigationA probe's effective irrigation setup - PUT
/modules/{moduleId}/irrigation/installationDeclare a CHANGE of equipment on the probe - DELETE
/modules/{moduleId}/irrigation/installationRemove the probe's own setup - POST
/modules/{moduleId}/irrigation/generalizePush the probe's setup up to its parcel - PUT
/modules/{moduleId}/irrigation/placementDistance from the probe to the emitter - POST
/modules/{moduleId}/irrigation/recomputeComplete the waterings left without a dose - GET
/modules/{moduleId}/irrigation/eventsA probe's watering log - POST
/modules/{moduleId}/irrigation/eventsLog a watering - DELETE
/irrigation/events/{eventId}Delete a watering - PATCH
/irrigation/events/{eventId}Correct a watering - PATCH
/irrigation/installations/{versionId}Correct the VALUES of a setup version - GET
/modules/{moduleId}/irrigation/schedulesSchedules feeding a probe - POST
/irrigation/schedulesCreate a schedule (irrigation turn) - DELETE
/irrigation/schedules/{scheduleId}Delete a schedule - PATCH
/irrigation/schedules/{scheduleId}Update a schedule - POST
/irrigation/schedules/{scheduleId}/backfillDeclare a schedule's history - PUT
/parcels/{parcelId}/irrigation/installationDeclare a change of equipment on the PARCEL
parcels
alerts
company
Authentication
-
apiKeyAuthapiKey headerAPI key, to send in the
x-api-keyheader of every request.