---
title: "Get output labels usage (getRuleChainOutputLabelsUsage)"
method: GET
path: "/api/ruleChain/{ruleChainId}/output/labels/usage"
tags: ["rule-chain-controller"]
---

# Get output labels usage (getRuleChainOutputLabelsUsage)

`GET /api/ruleChain/{ruleChainId}/output/labels/usage`

Fetch the list of rule chains and the relation types (labels) they use to process output of the current rule chain based on the provided Rule Chain Id. The rule chain object is lightweight and contains general information about the rule chain. List of rule nodes and their connection is stored in a separate 'metadata' object.

Available for users with 'TENANT_ADMIN' authority.

## Path parameters

- `ruleChainId` string, required

## Response `200`

OK

- RuleChainOutputLabelsUsage[]
  - `ruleChainId` RuleChainId, required
    - `id` string, uuid, required — ID of the entity, time-based UUID v1
    - `entityType` 'RULE_CHAIN', required — string
  - `ruleNodeId` RuleNodeId, required
    - `id` string, uuid, required — ID of the entity, time-based UUID v1
    - `entityType` 'RULE_NODE', required — string
  - `ruleChainName` string, required — Rule Chain Name
  - `ruleNodeName` string, required — Rule Node Name
  - `labels` string[], required — Output labels

---

[API](https://skmtc.net/thingsboard/apis/thingsboard-rest-api.md) · [All operations](https://skmtc.net/thingsboard/apis/thingsboard-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/thingsboard/thingsboard-rest-api/revisions/40169ccdec5c/schema)
