Skip to content

Ingest readings

POST
/v1/ingest
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.

file
file

CSV (columns time,asset,metric,value,unit) or JSON file

Readings to ingest

Array<object>
object
asset
string

Example

pump-1
metric
string

Example

flow
time
string

Example

2026-06-01T10:00:00Z
unit
string

Example

l/s
value
number

Example

12.5

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"
}