Skip to content

Sending readings

POST /v1/ingest accepts readings for the network your token belongs to. It is built for real-time and near-real-time feeds; for a large historical backfill, contact us. The full request and response schemas are in the API reference.

Field Meaning Format Example
time When the reading was taken ISO 8601 string, or epoch seconds/milliseconds as a number (always UTC) "2026-06-01T10:00:00Z"
asset The ID of the signal. A signal mapping links signals to Qatium assets; without one, a signal links to the asset with the same ID String, case sensitive "Pipe1"
metric What is being measured (see the table below) String "flow"
value The measured value Number, with a dot as decimal separator (a numeric string is also accepted) 1.7
unit The unit of value. Units are not converted String "l/s"
Variable metric Asset to associate
Flow flow pipe
Pressure pressure junction
Pump status status pump
Pump relative speed setting pump
Valve status status valve
Valve setting setting valve
Tank level level tank
Demand demand junction

Each reading is validated on its own: a unit that is not valid for its metric (for example l/s on a pressure reading), a missing field or a non-numeric value discards that reading, not the whole batch. The reason is listed in the job details — see Tracking jobs.

Content-Type: application/json, with an array of readings (a single reading object is also accepted):

[
{ "time": "2026-06-01T10:00:00Z", "asset": "pump-1", "metric": "flow", "value": 12.5, "unit": "l/s" }
]

A body in which no reading has an asset — for example readings wrapped in another object, or sent with different field names — is rejected with 400 and nothing is stored.

Content-Type: multipart/form-data, with the file in the file field. A .json file holds an array of readings, as above. Any other file is read as CSV:

time,asset,metric,value,unit
2026-06-01T10:00:00Z,pump-1,flow,12.5,l/s
2026-06-01T10:00:00Z,pump-1,pressure,2.1,bar

The header row is optional. Without it, the columns must be in this order: time,asset,metric,value,unit.

The request returns 202 Accepted straight away, before the readings are processed:

{
"job_id": "550e8400-e29b-41d4-a716-446655440000",
"network": "my-network",
"status": { "successful": 0, "quarantined": 0, "pending": 150 }
}

Use job_id to follow the batch: see Tracking jobs.

Code Meaning
202 Accepted, processing in progress
400 Invalid payload
401 Missing or invalid token
500 Unexpected error, safe to retry