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

Claiming

Device Claiming lets an end user securely associate a deployed device with their account. For a full explanation of the claiming workflow, see Claiming Devices.

See Getting Connected for credential types and connection details.

The device initiates claiming by sending a POST request:

Credential type URL
Access Token coap(s)://coap.thingsboard.cloud/api/v1/$ACCESS_TOKEN/claim
X.509 Certificate coaps://coap.thingsboard.cloud/api/v1/claim
{"secretKey": "mySecret", "durationMs": 60000}

Access Token:

Terminal window
coap-client -v 6 -m POST -t "application/json" -e '{"secretKey":"mySecret","durationMs":60000}' "coap://coap.thingsboard.cloud:5683/api/v1/$ACCESS_TOKEN/claim"

X.509 Certificate:

Terminal window
coap-client-openssl -v 6 -c cert.pem -j key.pem -m POST -t "application/json" -e '{"secretKey":"mySecret","durationMs":60000}' "coaps://coap.thingsboard.cloud/api/v1/claim"
Field Required Description
secretKey No Secret used to authorize the claim. Defaults to an empty string if omitted.
durationMs No Time window in milliseconds during which the device can be claimed. Defaults to the system value of SECURITY_CLAIM_DURATION.

When the device profile payload type is set to Protobuf, encode the payload using the same fixed schema as MQTT. See MQTT Claiming for the Protobuf schema.

Once the claiming window is open, the end user enters the secret key in the ThingsBoard UI to complete the association.