Skip to content

Getting started

Base URL https://api.qatium.app
Protocol HTTPS only
Rate limit 300 requests per minute; above that you get 429 Too Many Requests — wait and retry

All paths below are relative to it, e.g. POST https://api.qatium.app/v1/ingest.

You’ll receive a Bearer token scoped to your network. Include it on every request:

Authorization: Bearer <your-token>
POST /v1/ingest
Authorization: Bearer <your-token>
Content-Type: application/json
[
{ "time": "2026-06-01T10:00:00Z", "asset": "pump-1", "metric": "flow", "value": 12.5, "unit": "l/s" }
]

Or, as a quick test from the command line:

Terminal window
curl -X POST https://api.qatium.app/v1/ingest \
-H "Authorization: Bearer <your-token>" \
-H "Content-Type: application/json" \
-d '[{"time":"2026-06-01T10:00:00Z","asset":"pump-1","metric":"flow","value":12.5,"unit":"l/s"}]'

It answers 202 Accepted straight away with a job_id, before the readings are processed (see the response). Which fields a reading takes and which metrics exist: Sending readings.

The same endpoint takes a CSV file (or a JSON file) as multipart/form-data, in the file field:

Terminal window
curl -X POST https://api.qatium.app/v1/ingest \
-H "Authorization: Bearer <your-token>" \
-F "file=@readings.csv"

The file format is in File upload (CSV or JSON).

Terminal window
curl https://api.qatium.app/v1/jobs/<job_id> \
-H "Authorization: Bearer <your-token>"

The job ends as ok, warning (some readings discarded) or invalid. What each status means and how to see why readings were discarded: Tracking jobs.

Sending the same reading twice is safe. A reading is identified by asset + metric + time within your network, so re-sending a batch after a timeout or a failed job does not duplicate points in the series.

If you re-send a reading with a different value, the new value replaces the old one — the last value you send wins. This is how you correct a reading you have already submitted:

POST /v1/ingest
[
{ "time": "2026-06-01T10:00:00Z", "asset": "pump-1", "metric": "flow", "value": 12.5, "unit": "l/s" }
]
// later — same asset, metric and time, corrected value
[
{ "time": "2026-06-01T10:00:00Z", "asset": "pump-1", "metric": "flow", "value": 13.1, "unit": "l/s" }
]

Reading back pump-1 / flow at that timestamp returns 13.1.

Corrections are visible as soon as the job reaches ok — poll GET /v1/jobs/{job_id} to know when that is. Because ingestion is asynchronous, a query issued before the job completes may still return the previous value.

Need to send data continuously rather than in batches? See Connecting over MQTT.