Working with data
Start with machines, discover their sensors, then choose the data your integration needs.
Discover machines and sensors#
- Call
GET /api/v1/machinesto find available machines. Optionalsearchandstatusfilters narrow the results. - Use
GET /api/v1/machines/{id}/sensorsto discover sensor IDs and metadata. - Call
GET /api/v1/machines/{id}/snapshotfor the latest available sensor values. An optionalattimestamp requests a snapshot around a specific instant.
Use identifiers returned by the API, rather than display names, in subsequent requests.
Query historical measurements#
Call the timeseries endpoint with one to eight sensor IDs. Repeat sensor_id for multiple sensors. Replace the example IDs and dates with your own.
curl --get 'https://connect-api.iris-cloud.netzsch.com/api/v1/machines/MACHINE_ID/timeseries' \
--header "Authorization: Bearer $CONNECT_API_TOKEN" \
--data-urlencode 'sensor_id=SENSOR_ID' \
--data-urlencode 'from=2026-09-01T00:00:00Z' \
--data-urlencode 'to=2026-09-02T00:00:00Z' \
--data-urlencode 'interval=60000' \
--data-urlencode 'aggregation=avg' \
--data-urlencode 'page=1' \
--data-urlencode 'limit=100'- Timestamps: use RFC 3339 UTC timestamps, such as
2026-09-01T00:00:00Z. - Range: maximum 30 days per query; the default range is the last seven days.
- Interval: a positive bucket size in milliseconds;
60000is one minute. - Aggregation:
avg,min,max,firstorlast. Requiresinterval. With interval alone, buckets return min, max and avg.
Numeric aggregation requires compatible sensor values. The reference describes the exact response format.
Read paginated results#
The timeseries and batch-list endpoints accept page and limit. Pages start at 1; the default page size is 10 and the maximum is 1000.
Read the response’s pagination metadata and request the next page until you have all the results you need. Pagination is endpoint-specific; do not add these parameters to endpoints that do not document them.
Understand alarms and alerts#
Alarms come from the machine’s PLC. Alerts are generated by the platform for machines and sensors. Both endpoints accept from and to, default to the last seven days, and support a maximum 30-day range.
Read production batches#
Use GET /api/v1/batches to list batches. Filter by status, sort by start_time, end_time, batch_id or recipe, and choose ASC or DESC order.
Use an ID from the list with GET /api/v1/batches/{id} to retrieve details. All supported status values and response fields are listed in the API reference.