Industrial IoT / SCADA · API / SDK

ThingsBoard REST API

ThingsBoard

Integrate device telemetry and platform resources through REST interfaces.

Official documentationDownload development spec

THINGSBOARD / DEVELOPER FIELD GUIDE

Choose an interface. Define a verifiable result.

Company or project context, ten technical entry points and a practical analysis of every reference.

2026-10-08 · Integration not tested

Company / project overview

Original summary of official company or project statements; use the source for the full original page.

ThingsBoard · About
Product ecosystemThingsBoard offers IoT platform software plus cloud, edge and gateway products.
Integration roleIts interfaces connect device telemetry, state, rules and dashboards.
Edition boundaryThis guide uses Community Edition documentation; verify feature availability for your deployed edition.
Complete official About page ↗
About reference — TA analysis
AudienceBuyers, partners and product owners shortlisting an AI provider.
Our assessmentUse positioning and company history for initial fit. Obtain project-specific deployment, support and commercial terms separately.

Official sources reviewed. No provider API or inference was run; results are illustrative internal contracts.

Top 10 technical entry points

Ten documented technical entry points selected for implementation decisions, not ten independent SDKs or an official ranking.

Choose by the work you need to complete
InterfacePurpose and audience
01 · REST APIAPI / SDK / developer guideManage entities and query platform data.Backend integrators
02 · MQTT connectivityAPI / SDK / developer guideConnect devices through MQTT.Device firmware teams
03 · HTTP device APIAPI / SDK / developer guideSubmit device messages over HTTP.HTTP device developers
04 · Time-series dataAPI / SDK / developer guideStore and query timestamped measurements.Telemetry developers
05 · AttributesAPI / SDK / developer guideManage scoped latest-value attributes.Device state developers
06 · Command and controlAPI / SDK / developer guideExchange device commands and replies.Device integration teams
07 · Rule engineAPI / SDK / developer guideRoute and transform incoming messages.Automation developers
08 · AlarmsAPI / SDK / developer guideRepresent abnormal conditions and lifecycle.Operations designers
09 · Device profilesAPI / SDK / developer guideApply shared device settings.Fleet administrators
10 · Gateway APIAPI / SDK / developer guideRepresent connected downstream devices through a gateway.Gateway developers

Reference analysis

Capabilities summarize official documentation. Constraints and proposed tests are our engineering assessment.

01

API / SDK / developer guide

REST API

REST API · TA
Target audienceBackend integrators
Documented capabilityManage entities and query platform data.
Input → outputAuthorized REST request → entity or data response.
Execution environmentSelected ThingsBoard edition/version and authorized tenant/device connection
Our decision constraintCurrent docs recommend API keys since4.3 and deprecate JWT; match installed version.
Our suggested validationTest key revocation and tenant boundaries.
Official reference · REST API ↗
02

API / SDK / developer guide

MQTT connectivity

MQTT connectivity · TA
Target audienceDevice firmware teams
Documented capabilityConnect devices through MQTT.
Input → outputDevice credentials and connection → protocol session.
Execution environmentSelected ThingsBoard edition/version and authorized tenant/device connection
Our decision constraintDevice credentials differ from platform REST user credentials.
Our suggested validationTest reconnect and rejected device credentials.
Official reference · MQTT connectivity ↗
03

API / SDK / developer guide

HTTP device API

HTTP device API · TA
Target audienceHTTP device developers
Documented capabilitySubmit device messages over HTTP.
Input → outputAuthorized device request → platform acknowledgement.
Execution environmentSelected ThingsBoard edition/version and authorized tenant/device connection
Our decision constraintHTTP acknowledgement does not prove downstream business processing.
Our suggested validationRead back expected telemetry and inspect failures.
Official reference · HTTP device API ↗
04

API / SDK / developer guide

Time-series data

Time-series data · TA
Target audienceTelemetry developers
Documented capabilityStore and query timestamped measurements.
Input → outputKey/value/time → historical readings.
Execution environmentSelected ThingsBoard edition/version and authorized tenant/device connection
Our decision constraintTimestamps use epoch milliseconds; server may assign time when absent.
Our suggested validationCheck units, device identity and out-of-order samples.
Official reference · Time-series data ↗
05

API / SDK / developer guide

Attributes

Attributes · TA
Target audienceDevice state developers
Documented capabilityManage scoped latest-value attributes.
Input → outputAttribute update → stored configuration/state value.
Execution environmentSelected ThingsBoard edition/version and authorized tenant/device connection
Our decision constraintAttributes are not historical time-series storage.
Our suggested validationCheck scope, overwrite behavior and read-back.
Official reference · Attributes ↗
06

API / SDK / developer guide

Command and control

Command and control · TA
Target audienceDevice integration teams
Documented capabilityExchange device commands and replies.
Input → outputRPC method and parameters → send status or reply.
Execution environmentSelected ThingsBoard edition/version and authorized tenant/device connection
Our decision constraintOne-way200 confirms sending, not device execution; two-way expects reply.
Our suggested validationCorrelate command IDs and verify actual device state separately.
Official reference · Command and control ↗
07

API / SDK / developer guide

Rule engine

Rule engine · TA
Target audienceAutomation developers
Documented capabilityRoute and transform incoming messages.
Input → outputMessage and rule chain → routed actions/results.
Execution environmentSelected ThingsBoard edition/version and authorized tenant/device connection
Our decision constraintA failed node can block intended downstream actions.
Our suggested validationExercise success and failure relations with fixtures.
Official reference · Rule engine ↗
08

API / SDK / developer guide

Alarms

Alarms · TA
Target audienceOperations designers
Documented capabilityRepresent abnormal conditions and lifecycle.
Input → outputCondition evaluation → alarm state.
Execution environmentSelected ThingsBoard edition/version and authorized tenant/device connection
Our decision constraintAcknowledgement and clearing have different meanings.
Our suggested validationTest creation, acknowledgement and recovery clearing.
Official reference · Alarms ↗
09

API / SDK / developer guide

Device profiles

Device profiles · TA
Target audienceFleet administrators
Documented capabilityApply shared device settings.
Input → outputProfile configuration → device behavior defaults.
Execution environmentSelected ThingsBoard edition/version and authorized tenant/device connection
Our decision constraintProfile changes can affect multiple devices.
Our suggested validationVerify scope on representative devices before broad rollout.
Official reference · Device profiles ↗
10

API / SDK / developer guide

Gateway API

Gateway API · TA
Target audienceGateway developers
Documented capabilityRepresent connected downstream devices through a gateway.
Input → outputGateway messages and device mapping → per-device data.
Execution environmentSelected ThingsBoard edition/version and authorized tenant/device connection
Our decision constraintGateway identity must not collapse distinct downstream devices.
Our suggested validationCheck mapping, disconnect and duplicate device names.
Official reference · Gateway API ↗

Official documentation

Official documentation · Supporting reference analysis
TADevelopers and technical product owners
Our validation advicePin the release and follow the target-specific support requirements before implementation.
Official reference · Official documentation ↗

04 / INPUT · EXPECTED OUTPUT · ACCEPTANCE

Expected results before implementation

Illustrative telemetry read-back contract; sample measurements are invented. No device connection, telemetry write or RPC was executed.

Illustrative contract · no API call or model execution · not measured provider output

Telemetry stored and retrieved

Expected behavior — illustrative, not executed
InputAuthorized device sample with explicit units and timestamp.
Expected resultok after matching device/key/value is read back.
AcceptanceVerify epoch milliseconds and configured retention.

Empty time window

Expected behavior — illustrative, not executed
InputValid historical query with no stored samples.
Expected resultok with empty measurements.
AcceptanceDo not replace missing readings with zero.

Command only sent

Expected behavior — illustrative, not executed
InputOne-way RPC acknowledgement.
Expected resultsent with execution_verified=false.
AcceptanceRequire device feedback or observed state before claiming actuation.

Revoked credentials

Expected behavior — illustrative, not executed
InputREST key or device credential rejected.
Expected resulterror/denied; no new trusted telemetry.
AcceptancePreserve tenant isolation and redact credentials.

Map the expected result to your application

Map your actual runtime response into this proposed application contract. All values are invented examples; no credentials or live execution are included.

Expected output JSON — illustrative, not measured · ThingsBoardAPI-expected-results.json
{
  "schema_version": "1.0.0",
  "example": true,
  "provider": "ThingsBoard",
  "status": "ok",
  "input_id": "sample-001",
  "data": {
    "device_id": "example-device",
    "measurements": [
      {
        "key": "temperature",
        "value": 23.5,
        "unit": "C",
        "timestamp_ms": 1791417600000
      }
    ],
    "command_execution_verified": false
  },
  "error": null,
  "verification": "illustrative-only;not-provider-response"
}
Download specification, example and acceptance plan
Engineering handoff — our proposed contract and gates
State semanticsValid empty results differ from errors. Pending work must not appear successful before completion.
EvidenceRecord service and SDK versions, request identity, configuration and response mapping. No execution or performance was measured here.
Acceptance proposalAgree numerical tolerances and workload targets before testing on representative authorized samples.

Development assessment

Equipment telemetry dashboard

Development concept · integration not tested

Provider capabilities above are based on official documentation or repositories. The proposed product, inputs, deliverable and acceptance criteria below are our development assessment.

Small prototype

Test one documented operation with a small real sample after access is confirmed. This is a development judgment, not a delivery estimate.

Proposed inputs
A test device or simulator, a tag map and documented units.
Proposed deliverable
Timestamped device values with freshness, unit and connection state.
Acceptance criterion
Verify scaling and timestamps against the source; a disconnected device must not appear healthy.
Dependencies
A gateway or service account, an equipment schema and access to a test environment.

Development sequence

  1. Confirm access to ThingsBoard REST API, license and the exact supported version.
  2. Prepare the sample above and implement one documented operation for “Equipment telemetry dashboard”.
  3. Normalize the result with source, time and explicit error state; keep the provider response for review.
  4. Run the acceptance criterion before estimating rollout effort or committing a customer deliverable.

How to validate demand

Record product views, documentation clicks, specification downloads and contextual hub clicks. These are event counts, not unique people or completed integrations.

This feasibility assessment uses implementation conditions. No traffic-based rank or delivery-time promise is assigned.

Related products