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
180 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

HTTP API

Devices connect to ThingsBoard Edge over HTTP the same way they connect to ThingsBoard CE — only the host differs. Point your HTTP client to the Edge node’s IP address or hostname.

Default ports: 8080 (plain), 443 (HTTPS)

Authenticate with the device access token embedded in the request URL:

http://{EDGE_HOST}:8080/api/v1/{accessToken}/...

To find a device’s access token: go to Entities → Devices, open the device, click Copy access token on the Device details tab.

Terminal window
export ACCESS_TOKEN=your_device_token
export EDGE_HOST=your_edge_host_or_ip

Base URL: http://{EDGE_HOST}:8080/api/v1/{accessToken}

Operation Method Path
Publish telemetry POST /telemetry
Publish client-side attributes POST /attributes
Get attributes GET /attributes?clientKeys=…&sharedKeys=… (or allClientKeys=true / allSharedKeys=true)
Subscribe to shared attribute updates (long-poll) GET /attributes/updates?timeout={ms}
Subscribe to RPC commands (long-poll) GET /rpc?timeout={ms}
Respond to server-side RPC POST /rpc/{requestId}
Send client-side RPC POST /rpc
Claim device POST /claim
Provision new device POST http://{EDGE_HOST}:8080/api/v1/provision
Get firmware info GET /firmware?title={title}&version={ver}
Terminal window
curl -v -X POST \
"http://$EDGE_HOST:8080/api/v1/$ACCESS_TOKEN/telemetry" \
-H "Content-Type: application/json" \
-d '{"temperature": 25, "humidity": 60}'

Telemetry and attribute payloads accept a flat JSON object or a timestamped array:

{"temperature": 25, "humidity": 60}
[
{"ts": 1730000000000, "values": {"temperature": 25}},
{"ts": 1730000060000, "values": {"temperature": 26}}
]