Skip to main content
Send data from your system into KODE OS by registering devices on a KODE API data source and posting point values. KODE OS then treats your data like any other connected building data. Each linked endpoint can switch the sample between cURL, JavaScript, Python, and PowerShell, or send the request for you.

Before you begin

You need:
  • An access token. See the quickstart.
  • A buildingId from List buildings.
  • A data source with apiType set to API_KODE on 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 id again updates the existing device instead of creating a duplicate.
The response reports how many devices and points were created or updated:
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 status to report fault, down, or no_value instead of skipping a reading.
  • Re-run device creation when your system adds points. Existing devices update in place.
Last modified on November 10, 2026