ThingsBoard icon

ThingsBoard

Interact with ThingsBoard REST API

Telemetry → Attribute Keys

AI-generated

Summary

Retrieve a list of unique attribute key names associated with a specified ThingsBoard entity.

Inputs

  • entityId (required) — The unique ID of the target entity.
  • entityType — The type of entity to query, such as DEVICE or ASSET. Defaults to DEVICE.

Output shape

An object with an attributeKeys property containing an array of attribute key name strings.

Returns an empty array under attributeKeys if no attribute keys exist for the specified entity.

Examples

Example 1: Get attribute keys for a specific device

Set Entity Type to DEVICE and Entity ID to 784f394c-42b6-435a-983c-b7beff2784f9.

Links

Discussion