One known metric
Use GET /api/metrics/v1/{metricId}/data-points. This is the clearest route
for charting or exporting one measurement.
Read normalized time-series values for one metric, one resource, or a larger set of metrics and resources. Every query requires an applied-at date range.
Use GET /api/metrics/v1/{metricId}/data-points. This is the clearest route
for charting or exporting one measurement.
Use GET /api/data-points/v1 when a URL with optional single metric, system,
site, process, and component filters is convenient.
Use POST /api/data-points/v1/query for arrays of metric or resource IDs and a
structured request body.
Request metric and/or unit includes to embed related metadata
with each value.
curl --digest \
--user "$WATERLY_API_USERNAME:$WATERLY_API_SECRET" \
"https://connect.waterly.com/api/metrics/v1/91/data-points?start=2026-01-01&end=2026-01-31&include=metric,unit&limit=100"
{
"data": [{
"metric_id": 91,
"applied_at": "2026-01-02T00:00:00.000Z",
"measured_at": "2026-01-02T00:01:00.000Z",
"value_type": "numeric",
"value": 1.42,
"source": "human",
"status": {
"is_calculated": false,
"is_interpolated": false,
"is_nondetect": false
},
"metric": {
"kind": "metric", "id": 91, "name": "Chlorine Residual",
"parent": { "kind": "component", "id": 82 },
"order": 1,
"attributes": { "data_type": "NUMERIC", "unit_id": 5, "internal_keyname": "chlorine_residual" }
},
"unit": { "id": 5, "name": "mg/L" }
}],
"links": { "self": "...", "next": null, "prev": null },
"meta": { "limit": 100, "has_next": false, "has_prev": false }
}
The organization ID is required. Supply start and end for a range, or at for an exact instant. All ID filters are optional. When you supply more than one filter, Waterly returns only data points that match all of them.
organization_idstartendmetric_idsystem_idsite_idprocess_idcomponent_idincludelimitcursor
curl --digest \
--user "$WATERLY_API_USERNAME:$WATERLY_API_SECRET" \
"https://connect.waterly.com/api/data-points/v1?organization_id=123&site_id=55&start=2026-01-01&end=2026-01-31&include=unit"
The query route accepts up to 200 unique IDs in each array. Empty arrays add no restriction. Non-empty metric and resource filters intersect, which makes this route useful for precise exports.
curl --digest \
--user "$WATERLY_API_USERNAME:$WATERLY_API_SECRET" \
--header "Content-Type: application/json" \
--request POST \
--data '{
"organization_id": 123,
"metric_ids": [91, 92, 93],
"filters": {
"system_ids": [40],
"site_ids": [55],
"process_ids": [],
"component_ids": []
},
"range": {
"start": "2026-01-01T00:00:00Z",
"end": "2026-02-01T00:00:00Z"
},
"pagination": { "limit": 200, "cursor": null },
"include": { "metric": true, "unit": true }
}' \
"https://connect.waterly.com/api/data-points/v1/query"
links.next. Its query-string cursor overrides
pagination.cursor.
applied_at. A date-time range is half-open: start is
included and end is excluded.
2026-01-31 includes that entire UTC calendar
day.
limit may be from 1 to 200.
| Field | Meaning |
|---|---|
| metric_id | Metric that owns the value. |
| applied_at | Time at which Waterly applies the winning value in the time series. |
| measured_at | Time at which the value was measured or recorded. |
| value_type |
How to interpret value: text, numeric, boolean, date, time, date_time,
json, user_select, or image.
|
| source |
human, calculated, waterly_connect, or
null.
|
| status | Flags indicating calculated, interpolated, or nondetect values. |
| metric / unit |
Optional related records, present only when requested with
include.
|