The "describeTags" action describes specified tags. You can specify tags by ID or name. You can also control the information returned about each tag.
You can include additional information about where a tag is used:
-
"includeInputConnectorsProperties"- lists the input connectors that use a specific tag. -
"includeOutputConnectorsProperties"- lists the output connectors that use a specific tag. -
"includeThingProperties"- List of devices and software that use a specific tag, including when the tag is being collected and/or delivered to the device. -
"includeTopicProperties"- The topics that use a specific tag.- Typically a tag is used by one MQTT topic, but the
"jsonToDifferentTableFields"transform action can map a tag to additional tables that can be associated with additional MQTT topics.
- Typically a tag is used by one MQTT topic, but the
Request examples
Describe by IDs
{
"api": "hub",
"action": "describeTags",
"params": {
"ids": [ 1, "2" ],
"includeInputConnectorProperties": ["id", "connectorName", "connectorId" ],
"includeOutputConnectorProperties": ["id", "connectorName", "connectorId" ],
"includeThingProperties": [],
"includeTopicProperties": ["id", "topic", "tableName"]
},
"authToken": "replaceWithAuthTokenFromCreateSession"
}
Describe by Names
{
"api": "hub",
"action": "describeTags",
"params": {
"tagNames": [ "My Device", "Changed Name" ],
"includeInputConnectorProperties": ["id", "connectorName", "connectorId" ],
"includeOutputConnectorProperties": ["id", "connectorName", "connectorId" ],
"includeThingProperties": [],
"includeTopicProperties": ["id", "topic", "tableName"]
},
"authToken": "replaceWithAuthTokenFromCreateSession"
}
Response examples
Minimal
{
"authToken": "replaceWithAuthTokenFromCreateSession",
"result": {
"id": 1,
"tagName": "temperatureCelsius",
"tableName": "temperature",
"ownerName": "admin",
"databaseName": "faircom",
"tagDataType": "number",
"sourceFieldName": "temperature_celsius",
"sourceFieldType": "integer",
"sourceFieldLength": 4,
"sourceFieldScale": null,
"sourcePayloadPath": "temperature.celsius",
"sourcePayloadBinaryFormat": "hex",
"sourcePayloadDateFormat": "iso8601",
"sourcePayloadTimeFormat": "iso8601",
"sourcePayloadNumberRounding": "roundup",
"sourcePayloadVariantFormat": "json",
"status": "active",
"purpose": "Store temperature in Celsius",
"description": "My tag's description",
"labels": ["temperature", "celsius"],
"metadata": { "myProperty": "myValue" },
"createdTimestamp": "2026-01-03T12:13:04Z",
"updatedTimestamp": "2026-01-03T12:13:04Z"null,
"inactiveTimestamp": null
},
"errorCode": 0,
"errorMessage": ""
}Maximal
{
"authToken": "replaceWithAuthTokenFromCreateSession",
"result": {
"id": 1,
"tagName": "temperatureCelsius",
"tableName": "temperature",
"ownerName": "admin",
"databaseName": "faircom",
"tagDataType": "number",
"sourceFieldName": "temperature_celsius",
"sourceFieldType": "integer",
"sourceFieldLength": 4,
"sourceFieldScale": null,
"sourcePayloadPath": "temperature.celsius",
"sourcePayloadBinaryFormat": "hex",
"sourcePayloadDateFormat": "iso8601",
"sourcePayloadTimeFormat": "iso8601",
"sourcePayloadNumberRounding": "roundup",
"sourcePayloadVariantFormat": "json",
"status": "inactive",
"purpose": "Store temperature in Celsius",
"description": "My tag's description",
"labels": ["temperature", "celsius"],
"metadata": { "myProperty": "myValue" },
"createdTimestamp": "2026-01-03T12:13:04Z",
"updatedTimestamp": "2026-02-03T17:36:57Z",
"inactiveTimestamp": "2026-03-03T09:01:13Z",
"inputConnectors": [
{ "connectorId": 51, "connectorName": "INPUT: PLC 74 & Modbus", "lastCollectedTimestamp": "2025-08-28T10:47:13.041" }
],
"outputConnectors": [
{ "connectorId": 52, "connectorName": "OUTPUT: PLC 74 & Modbus","lastDeliveredTimestamp": "2025-08-28T10:47:13.041" },
{ "connectorId": 53, "connectorName": "OUTPUT: MES & REST", "lastDeliveredTimestamp": "2025-08-28T10:47:13.041" }
],
"things": [
{ "thingId": 1 }
],
"topics": [
{ "topicId": 1, "topic": "Temperature", "tableName": "temperature" },
{ "topicId": 1, "topic": "Temperature//Celsius", "tableName": "celsius" }
]
},
"errorCode": 0,
"errorMessage": ""
}
Properties
Request properties ("params")
| Property | Description | Default | Type | Limits (inclusive) |
|---|---|---|---|---|
ids |
The
|
Optional with default of Required when |
array | 0 or more ids |
includeInputConnectorProperties |
The
For more details, see |
Optional with default of []
|
array of strings |
|
includeOutputConnectorProperties |
The
For more details, see |
Optional with default of []
|
array of strings |
|
includeThingProperties |
The "includeThingProperties" property causes the response to include a "things" list that contains all the devices and software related to the request. Each string is the name of a device property. For more details, see "includeThingProperties". |
Optional with default of []
|
array of strings |
|
includeTopicProperties |
The "includeTopicProperties" property causes the response to include a "topics" list that contains all the MQTT topics related to the request. Each string is the name of a topic property. For more info, see “includeTopicProperties”. |
Optional with default of []
|
array of strings | zero or more of the properties in the results example of the describeTopics action |
tagNames |
The
|
Required - No default value | string | 1 to 256 bytes |
Response properties ("result")
| Property | Description | Type | Limits (inclusive) |
|---|---|---|---|
createdTimestamp |
The "createdTimestamp" property is the date and time when something, such as a thing or key, was originally created in ISO 8601 format, such as "2025-08-28T10:47:13.041". It is never null. |
timestamp | An ISO 8601 timestamp |
databaseName |
The
|
string | 1 to 64 bytes |
description |
The Markdown is a good language for formatting description text. You must ensure the text is compatible with a JSON string. For example, you must escape a double quote character using the backslash character:
In the Thing API, It defaults to
|
string | 1 to 65,500 bytes |
id |
The |
integer |
|
inactiveTimestamp |
The "inactiveTimestamp" property is the date and time when the thing was last made inactive. It is null when the thing is active. It is returned in ISO 8601 format, such as "2025-08-28T10:47:13.041". |
timestamp | ISO 8601 timestamp |
inputConnectors |
The
|
array of objects |
zero or more objects containing zero or more of the following properties:
|
labels |
The The
When using tag actions, the optional
When you use the
You can use the
The Tag API implements the
|
array of objects |
1 or more label objects
Values are managed in the Label API with the group of |
metadata |
The "metadata" property contains user-defined properties that add keywords and tags about the code package. The server indexes this field with a full-text index so you can search for any word or phrase to find code packages. |
object | 0 or more key/value pairs |
onSyncConflict |
The "onSyncConflict" property specifies what happens when the automatic synchronization between a tag's property and field cannot be synchronized because both have different values. |
string enum |
"overwriteField""overwriteFieldWithoutError""overwriteProperty""overwritePropertyWithoutError""retainValues""retainValuesWithoutError" |
outputConnectors |
The
|
array of objects |
Zero or more objects containing zero or more of the following properties:
|
ownerName |
The "ownerName" property identifies the user who owns an object (see Object owner). |
string | 0 to 64 bytes |
purpose |
The
In the Thing API, the
This API uses the Label API to manage purposes.
|
string | 1 to 64 bytes |
sourceFieldLength |
The "sourceFieldLength" property links a tag to a field in the tag's integration table. |
string | 1 to 64 bytes |
sourceFieldName |
The
|
string | 1 to 64 bytes |
sourceFieldScale |
The "sourceFieldScale" property contains the scale of the tag's field in the integration table. |
integer |
"money": 2 digits to the right of the decimal point allows 30 digits to the left."money": 4 digits to the right of the decimal point allows 28 digits to the left."number": 0 to 32 digits. It must be less than or equal to "sourceFieldLength" which defaults to 32. |
sourceFieldType |
The "sourceFieldType" property specifies the number of bytes of the tag's field in the integration table. |
integer |
"json", "varchar", and "varbinary": 1 to 65500 (Specifies the variable-length field's maximum number of bytes.)"char" and "binary": 1 to 65500 (Specifies the fixed-length field's length in bytes.)"number" and "money": 1 to 32 (Optionally specifies the field's maximum total number of numeric digits.) |
sourcePayloadBinaryFormat |
The
|
string |
|
sourcePayloadDateFormat |
The "sourcePayloadDateFormat" property specifies the "dateFormat" of data embedded in a string property in the source_payload field. |
string |
|
sourcePayloadNumberRounding |
The "sourcePayloadNumberRounding" property specifies the rounding option to use when reducing the scale of a number property in the source_payload field. |
string |
|
sourcePayloadPath |
The
|
string | 1 to 2048 bytes |
sourcePayloadTimeFormat |
The "sourcePayloadTimeFormat" property specifies how the server encodes and decodes a time value assigned to a tag. For more details, see "sourcePayloadTimeFormat". |
string enum |
"hh.mm.ss.ttt""hh.mm.am/pm""hh.mm.ss.am/pm""hh.mm.ss""hh.mm""hhmm""iso8601""utc"
|
sourcePayloadVariantFormat |
The
|
string enum |
"json""variantObject""binary""string"
|
status |
The
When the
To create, alter, and list inactive items, set the |
string enum |
|
tableName |
The See table name in System limits for the table naming requirements and limitations. |
string | 1 to 64 bytes |
tagDataType |
The
|
string enum |
"string""number" "boolean" "date" "time" "timestamp" "json" "variant" "binary"
|
tagName |
The
|
string | 1 to 256 bytes |
things |
The "things" property occurs in the response to Tag API actions when the "includeThingProperties" property is in the request. It is an array of objects that contains all devices and software related to a tag. Each object contains the requested device properties. See "includeThingProperties" for examples and additional information. |
array of objects | All devices and software related to a tag. |
topics |
The "topics" property occurs in the response to Tag API actions when the "includeTopicProperties" property is in the request. It is an array of objects that contains all topics related to a tag. Each object contains the requested topic properties. See "includeTopicProperties" for examples and additional information. |
array of objects | All topics related to a tag. |
updatedTimestamp |
The "updatedTimestamp" property is the date and time when the thing was last updated. It is the same as the "createdTimestamp" property when the thing has never been updated. It is returned in ISO 8601 format, such as "2025-08-28T10:47:13.041". |
timestamp | ISO 8601 timestamp |