Ingest readings
POST
/v1/ingest
const url = 'https://api.qatium.app/v1/ingest';const options = { method: 'POST', headers: {Authorization: '<Authorization>', 'Content-Type': 'application/json'}, body: '[{"asset":"pump-1","metric":"flow","time":"2026-06-01T10:00:00Z","unit":"l/s","value":12.5}]'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.qatium.app/v1/ingest \ --header 'Authorization: <Authorization>' \ --header 'Content-Type: application/json' \ --data '[ { "asset": "pump-1", "metric": "flow", "time": "2026-06-01T10:00:00Z", "unit": "l/s", "value": 12.5 } ]'Sends readings for the network your token belongs to, as a JSON array or as an uploaded CSV/JSON file (multipart/form-data, field file). Returns 202 immediately with a job_id; poll GET /v1/jobs/{job_id} for the final status. A body in which no reading has an asset is rejected with 400.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”FormData Parameters
Section titled “FormData Parameters”file
file
CSV (columns time,asset,metric,value,unit) or JSON file
Request Body
Section titled “Request Body”Readings to ingest
Array<object>
object
asset
string
Example
pump-1metric
string
Example
flowtime
string
Example
2026-06-01T10:00:00Zunit
string
Example
l/svalue
number
Example
12.5Array<object>
object
asset
string
Example
pump-1metric
string
Example
flowtime
string
Example
2026-06-01T10:00:00Zunit
string
Example
l/svalue
number
Example
12.5Responses
Section titled “Responses”Accepted
Media typeapplication/json
object
job_id
ID to poll with GET /v1/jobs/{job_id}
string
network
Network the readings were sent to
string
status
Reading counters at the time of the response
object
pending
Readings still being processed
integer
quarantined
Readings discarded
integer
successful
Readings stored
integer
Example
{ "job_id": "550e8400-e29b-41d4-a716-446655440000", "network": "my-network", "status": { "pending": 150, "quarantined": 0, "successful": 0 }}Invalid payload
Media typeapplication/json
object
key
additional properties
string
Example generated
{ "additionalProperty": "example"}Missing or invalid credentials
Media typeapplication/json
object
key
additional properties
string
Example generated
{ "additionalProperty": "example"}Internal Server Error
Media typeapplication/json
object
key
additional properties
string
Example generated
{ "additionalProperty": "example"}