Skip to content
Stand with Ukraine flag

Claiming

Initiate the claiming process for one or more downstream devices simultaneously.

Topic: v1/gateway/claim

{
"Device A": {"secretKey": "secretA", "durationMs": 60000},
"Device B": {"secretKey": "secretB", "durationMs": 60000}
}
FieldRequiredDescription
secretKeyNoSecret key for claiming authorization. Defaults to an empty string.
durationMsNoClaiming window in milliseconds. Defaults to the system value of SECURITY_CLAIM_DURATION.
Terminal window
mosquitto_pub -h "mqtt.thingsboard.cloud" -t "v1/gateway/claim" -u "$ACCESS_TOKEN" -m '{"Device A":{"secretKey":"mySecret","durationMs":60000}}'

For a full explanation of the claiming workflow, see Claiming Devices.