Endpoint
Returns streaming CSV (text/csv) with a header row. Validation and not-found errors respond as JSON {"error":"..."} with status 400 or 404.
Critical: binary fields
Binary columns are encoded as Base64 so the CSV stays valid text. Exception: if fields selects exactly one column and that column is binary (e.g. gps_raw_data), the response is the raw concatenated binary payload instead of CSV/Base64.
Query parameters
curl '{backend_base_url}/v1/data
?deployment=mydep
&vsensor=humidity
&from=2026-01-01T00:00:00
&to=2026-02-01T00:00:00
&position=91
'
Terminal commands like curl are sessionless by default — they do not use your browser login. The virtual sensor must be enabled for public download, otherwise the request is denied. For private sensors, add -H 'Authorization: Bearer <token>' .
1 Schema-dependent: required based on the virtual sensor table. Sensors with a position column need position, position=*, or positionLabel. Sensors without a position column need device or device=*. Use the form to see which filter applies and which values are available.
Authentication
Public virtual sensors (download enabled by an admin) can be requested anonymously — no credentials required. This is required for sessionless clients such as curl. For any other sensor, send a JWT as Authorization: Bearer <token>. Obtain a token from the backend login endpoint.
Python notebook
Load the CSV into a pandas DataFrame with requests:
import io
import pandas as pd
import requests
base = "{backend_base_url}"
params = {
"deployment": "mydep",
"vsensor": "humidity",
"from": "2026-01-01T00:00:00",
"to": "2026-02-01T00:00:00",
"position": "91",
}
r = requests.get(f"{base}/v1/data", params=params, timeout=120)
r.raise_for_status()
df = pd.read_csv(io.StringIO(r.text))
For non-public sensors, pass headers={"Authorization": "Bearer <token>"} to requests.get.