What the Data Retrieval API provides
These APIs are for reporting, analytics, data exports, and integrations that need to read
Waterly data outside the Waterly application. Each API token is assigned to an organization.
Requests verify the token's scopes and organization access.
Discover the data model
Discover accessible organizations with GET /api/organizations/v1, then use a
selected organization's data-model endpoint to walk its hierarchy or filter by a resource
kind or parent.
Read normalized values
Query one metric or several resources over a date range. Values are returned with their
value type, source, timestamps, and status flags.
Base URL — Examples use https://connect.waterly.com. API routes
begin with /api. Store the host in configuration so the same integration can use
a different Waterly environment when needed.
How Waterly resources fit together
An organization is the security boundary. System groups organize systems and can contain other
system groups. A system contains sites; each site contains processes. A process can contain
metrics directly or organize them under components. Data points are the timestamped values
recorded for a metric. Forms also belong to systems and group existing metrics for recording
service visits. They form a parallel discovery path alongside Sites, including forms with no
linked metrics.
Organization
Access boundary
System group
Can nest groups
System
Utility or facility system
Site
Operational location
Process
Treatment or workflow stage
Metric
May belong to a process
Component → Metric
Or group metrics by equipment
Data points
Timestamped metric values
Form discovery
System
Choose an owning system
Form
Flex forms and entry forms
Referenced metrics
Keep their existing process or component parent
Walk Organization → System group → System → Forms. Use Sites v3 for the parallel plain-sites
path; legacy Sites v1/v2 and data-model v1/v2 remain unchanged. Follow
links.forms on a system detail response, or request
GET /api/systems/v1/{systemId}/forms. Forms reference metrics without changing
their process or component parent. The visit path for entry forms continues through
links.entries to Entries, then links.data_points to the existing
DataPoints API using the entry’s exact applied_at datetime. See the
Forms guide.
Resource descriptions
| Resource |
What it represents |
Typical parent |
| Organization |
A utility, company, or operating entity and the boundary for API access.
|
— |
| System group |
A folder-like grouping used to organize systems. Groups may be nested.
|
Organization or system group |
| System |
A water, wastewater, or related operating system with shared settings and time
zone.
|
System group |
| Site |
A physical or logical operating location within a system.
|
System |
| Form |
A flex form or entry form owned by a system that groups referenced metrics.
Includes forms that do not yet reference any metrics.
|
System |
| Form Entry |
A dated visit with completion status and an exact datetime for retrieving
datapoints.
|
Entry form |
| Process |
A stage of treatment or operations at a site. |
Site |
| Component |
A piece of equipment or logical grouping within a process.
|
Process |
| Metric |
A named measurement definition, such as flow, pressure, or chlorine residual.
|
Process or component |
| Data point |
One value for a metric at a particular applied and measured time.
|
Metric |
Authenticate every request with HTTP Digest
Waterly issues a username and one-time visible secret for an API token. HTTP Digest uses a
challenge-response exchange so the secret itself is not placed in the request. The server
first returns 401 with a challenge; your HTTP client calculates a SHA-256 digest
for the request and tries again. Tools such as curl handle both steps automatically.
export WATERLY_API_USERNAME="your-api-username"
export WATERLY_API_SECRET="your-api-secret"
curl --digest \
--user "$WATERLY_API_USERNAME:$WATERLY_API_SECRET" \
"https://connect.waterly.com/api/organizations/v2/current"
/current identifies the assigned organization and token grants. Discovery
requires organization:read. To read an organization's systems, metrics, or data
points, use its ID as shown in the organization guide.
Resource list routes retain their assigned-organization behavior.