Skip to content

Cookie preferences

We use cookies for our own analytics, to see how our campaigns perform and, if you allow it, to load content from other services such as the Google site search. We never sell your data. Necessary cookies keep the site working and cannot be switched off. See our Cookie Policy for details and our Privacy Policy for how we handle personal data.

Security, load balancing and remembering your cookie choice.

Show us which pages people read, how they find the site and where they get stuck, so we can improve it (Google Analytics, Microsoft Clarity).

Show us which of our ad campaigns bring visitors to the site and remember the campaign or partner link you arrived from (Google Ads, LinkedIn, Meta, partner program). We do not use these cookies to build advertising profiles.

Load the site search from Google when you use it. Google sets its own cookies and shows ads in the search results.

© 2026 The ThingsBoard Authors
22.5k Try for free

ThingsBoard Cloud

Choose your data region

Your data stays in the region you choose, for residency and compliance. No credit card required.

Rather run it yourself? Install on your own servers

Telemetry

Publish telemetry by sending a POST request to:

POST https://thingsboard.cloud/api/v1/$ACCESS_TOKEN/telemetry

See Getting Connected for authentication and connection details.

A flat JSON object of key-value pairs. ThingsBoard assigns the server receive time as the timestamp.

{"temperature": 42, "humidity": 73}
Terminal window
curl -s -X POST -H "Content-Type: application/json" -d '{"temperature":42,"humidity":73}' "http://thingsboard.cloud/api/v1/$ACCESS_TOKEN/telemetry"

Include ts (Unix milliseconds) when the device has a reliable clock and you want the exact measurement time stored instead of the server receive time.

{"ts": 1451649600512, "values": {"temperature": 42, "humidity": 73}}
Terminal window
curl -s -X POST -H "Content-Type: application/json" -d '{"ts":1451649600512,"values":{"temperature":42,"humidity":73}}' "http://thingsboard.cloud/api/v1/$ACCESS_TOKEN/telemetry"

1451649600512 is a Unix timestamp in milliseconds — corresponds to Fri, 01 Jan 2016 12:00:00.512 GMT.

Array of Objects with Client-Side Timestamps

Section titled “Array of Objects with Client-Side Timestamps”

Send a batch of readings in a single request, each with its own timestamp. Use this to flush buffered measurements captured while offline.

[
{"ts": 1451649600512, "values": {"temperature": 42, "humidity": 73}},
{"ts": 1451649601000, "values": {"temperature": 43, "humidity": 72}}
]
Terminal window
curl -s -X POST -H "Content-Type: application/json" -d '[{"ts":1451649600512,"values":{"temperature":42,"humidity":73}},{"ts":1451649601000,"values":{"temperature":43,"humidity":72}}]' "http://thingsboard.cloud/api/v1/$ACCESS_TOKEN/telemetry"