Waterly WaterlyConnect Developer Hub
API Guide REST v1 Read only

Understand your operation. Read the data behind it.

The Data Retrieval API gives approved integrations a consistent way to discover an organization's structure and read normalized time-series values. Start at the organization, follow the hierarchy to a metric, then request the data points recorded for that metric.

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

Form Entries

Navigate System → Forms → Entries → DataPoints. Select a form with type: "entry" and follow its links.entries, adding required start and end dates. These are inclusive local calendar dates in the system's timezone, with at most 366 dates per request. Flex forms do not have entries.

GET /api/forms/v1/72/entries?start=2026-07-01&end=2026-07-31
GET /api/forms/v1/72/entries/10

List or inspect individual visits, including their current completion_status and exact applied_at datetime. Follow the list's pagination links for more entries. Each entry's links.data_points retrieves current readings through the existing DataPoints API using form_id, entry_id and at=applied_at.

Entries require data-model:read; reading their datapoints also requires data-points:read. See entry listing, detail and completion status and the entry-to-DataPoints walkthrough for timezone handling, daily readings and examples.

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.

Follow pagination links

Collection endpoints return 50 records by default and accept limit values from 1 to 200. Do not construct or edit cursor values. When meta.has_next is true, make the next Digest-authenticated request to the absolute URL in links.next.

{
  "data": [ ... ],
  "links": {
    "self": "https://connect.waterly.com/api/sites/v3?limit=50",
    "next": "https://connect.waterly.com/api/sites/v3?limit=50&cursor=eyJ...",
    "prev": null
  },
  "meta": { "limit": 50, "has_next": true, "has_prev": false }
}

Choose an API guide