Before you begin
You need:- An access token. See the quickstart.
- A
buildingIdfrom List buildings. - A data source with
apiTypeset toAPI_KODEon that building. Ask your KODE project team to create one if it does not exist.
Send device data
1
Find your data source
Call List building data sources and note the
_id of the data source whose apiType is API_KODE.2
Create devices and points
Register each device with its points. Use stable identifiers from your system, because sending the same The response reports how many devices and points were created or updated:
id again updates the existing device instead of creating a duplicate.3
Send current values
Post values grouped by device. Set
timestamp to the Unix epoch time of the measurement, or 0 to use the current time.4
Confirm the values arrived
Call List latest point values with the KODE OS point identifiers returned by List building points.
Choose a timeseries endpoint
Design for reliable ingestion
- Batch values to stay within the rate limits. Five requests per second is the burst ceiling.
- Send the measurement time, not the time your service processed the value.
- Use
statusto reportfault,down, orno_valueinstead of skipping a reading. - Re-run device creation when your system adds points. Existing devices update in place.

