Forms API
Find the Forms owned by a system and their stable identifiers.
Discover a system's forms
Walk Organization → System group → System → Forms. Forms and Sites v3 are separate discovery paths beneath a system. Sites v1/v2 and data-model v1/v2 keep their existing behavior and may include form instances. The Forms collection includes both flex forms and entry forms, including forms with no linked metrics.
type: "flex" identifies a form that groups referenced metrics.
type: "entry" identifies a form that also supports recording individual visits.
These classifications are mutually exclusive even though entry forms share the underlying
flex-form storage model.
Follow Forms (type entry) → Entries → DataPoints. Only entry forms expose
links.entries; flex forms do not. Each entry supplies an exact
applied_at datetime and a links.data_points URL to the existing
DataPoints API. Both types reference existing metrics without
changing their process or component ownership.
List a system's Forms
Use a positive integer system ID from the Systems API, or follow
links.forms on a system detail response. Requests require
Digest authentication and data-model:read.
Only forms owned by that system in the token's organization are returned.
Archived forms and systems are excluded. A system without forms returns data: [].
Forms are returned once regardless of how many metrics they reference, including forms with no
metrics.
Example: discover a service-visit form
List systems within a system group, inspect the selected system, then follow its forms link. These IDs and names are illustrative; replace them with values returned by your account.
curl --digest --user "$WATERLY_API_USERNAME:$WATERLY_API_SECRET" \
"https://connect.waterly.com/api/systems/v1?system_group_id=8"
curl --digest --user "$WATERLY_API_USERNAME:$WATERLY_API_SECRET" \
"https://connect.waterly.com/api/systems/v1/40/forms?limit=50"
{
"data": [
{ "id": 72, "name": "Service Visit", "type": "entry", "system_id": 40, "links": { "entries": "https://connect.waterly.com/api/forms/v1/72/entries" } },
{ "id": 81, "name": "Operations Overview", "type": "flex", "system_id": 40 }
],
"links": {
"self": "https://connect.waterly.com/api/systems/v1/40/forms?limit=50",
"next": null,
"prev": null
},
"meta": { "limit": 50, "has_next": false, "has_prev": false }
}
Response fields
-
type:flexorentry. Only entry forms support visit entries and exposelinks.entries. Flex forms omit that link. -
id: stable form identifier. -
name: current form name. -
system_id: the system that owns the form. -
links: self, next and previous page URLs; unavailable page links are null. -
meta: requested page limit and whether next or previous pages are available.
List entries and inspect a visit
Follow an entry form's links.entries and supply start and
end as inclusive local calendar dates in the owning system's timezone. A request
may cover at most 366 dates. Entries are the form's own dated visits, not scheduled intervals
or visits borrowed from related forms.
GET /api/forms/v1/72/entries?start=2026-07-10&end=2026-07-10&limit=50
GET /api/forms/v1/72/entries/10
The list returns data, pagination links and meta.
Detail returns one entry in data. Example entry:
{
"id": 10,
"form_id": 72,
"system_id": 40,
"date": "2026-07-10",
"time": "14:30:00",
"time_zone": "America/Chicago",
"applied_at": "2026-07-10T19:30:00.000Z",
"completion_status": "incomplete",
"links": {
"self": "https://connect.waterly.com/api/forms/v1/72/entries/10",
"data_points": "https://connect.waterly.com/api/data-points/v1?organization_id=123&form_id=72&entry_id=10&at=2026-07-10T19%3A30%3A00.000Z&include=unit"
}
}
completion_status is complete when the current interval completion
record is complete, incomplete when it is missing or false, and
not_tracked when completion tracking is disabled. Completion is independent of
whether any readings exist. Re-read detail to obtain current status.
Entry lists use ascending entry ID order, not time order, with the same 1–200 limit (default
50). Follow returned pagination links. Cursors are bound to the organization, form, and date
range; do not reuse them for another query. No entries returns an empty array. Unknown,
archived, inaccessible, and non-entry forms return 404; an entry ID under the wrong form also
returns 404. Invalid dates or cursors return 400. Omit cursor for the first page;
an explicitly empty ?cursor= also returns 400.
Retrieve the entry's datapoints
A reading is a datapoint at an instant. Follow links.data_points, or copy the
entry's exact applied_at into at, its id into
entry_id, and its form_id into the DataPoints query. The
organization ID is required. Do not use the local date alone, measured_at, or an
entry ID as a datapoint selector. There is no separate entry-readings API.
curl --digest --user "$WATERLY_API_USERNAME:$WATERLY_API_SECRET" \
"https://connect.waterly.com/api/data-points/v1?organization_id=123&form_id=72&entry_id=10&at=2026-07-10T19%3A30%3A00.000Z&include=unit"
The complete discovery path is Organization → System group → System →
links.forms → entry form → links.entries (add local dates) → entry →
links.data_points. Forms and Entries require data-model:read;
DataPoints also requires data-points:read. Discovery access alone does not grant
reading access.
The at filter matches applied_at exactly. It requires an explicit
UTC or numeric offset, supports at most millisecond precision, and cannot be combined with
start or end. The form filter selects its currently linked active
metrics within the authorized organization; other metric and resource filters intersect it.
Follow DataPoints pagination links to collect all readings. Values, nulls, units and
nonnumeric data use the standard DataPoints format. Missing readings are absent, not
synthesized as null records.
These are current readings, not immutable visit snapshots. Edits and changes to form metric
links affect subsequent queries. Related forms can store separate readings for a shared metric
at the same instant. The entry_id selector matches the stored interval
association so each entry retrieves its own readings. Omitting it is a broader form-metric
query. measured_at can differ from applied_at, including when data
is entered later.
The server resolves the entry's local date and wall time using the system timezone. During the
repeated daylight-saving hour, stored reading or completion timestamps determine the instant.
An entry with no stored timestamp uses the earlier possible instant until data establishes its
association. If stored records disagree across both instants, list/detail returns
409 instead of guessing; use a DataPoints range with
organization_id, form_id and entry_id to inspect both.
Use the returned instant rather than recomputing its offset. Daily metrics use local midnight,
so a 14:30 visit query does not automatically include that day's daily readings. To retrieve
daily readings, make a separate DataPoints query at local midnight converted to an explicit
offset instant, or use the existing bounded range query. A UTC date-only DataPoints range is
not equivalent to an entry list's system-local dates.
Ordering and pagination
Results use ascending form ID order. limit is an integer from 1 to 200 and
defaults to 50. Follow links.next or links.prev rather than
constructing cursors. Omit cursor for the first page; an empty value returns 400.
Cursors are opaque and scoped to the requested system and token organization; reusing one for
another system or organization returns 400. Discovery reflects current configuration rather
than an immutable snapshot.
Errors and empty results
-
200: a page of forms, or an empty data array when the system has no forms. -
400: invalid system ID, limit, cursor or unsupported query parameter. -
401: Digest authentication is missing or invalid. -
403: the token lacks the required scope. -
404: the requested system does not exist, is archived, or is inaccessible to the token.
