Skip to content
Support

Count feedback records per taxonomy node

GET/v1/taxonomy/runs/{run_id}/record-counts

Returns the feedback-record count for every visible node in a taxonomy run. Each count is a subtree total, so a topic (branch) reports the sum of its subtopics and the root reports the run total. Tenant-scoped; returns 404 if the run does not belong to the tenant.

Path ParametersExpand Collapse
run_id: string
formatuuid
Query ParametersExpand Collapse
tenant_id: string

Tenant that owns the run.

minLength1
maxLength255
ReturnsExpand Collapse
counts: array of object { node_id, record_count }

Per-node feedback-record counts, one entry per visible node.

node_id: string

Taxonomy node ID.

formatuuid
record_count: number

Number of feedback records in the node's subtree.

formatint64

Count feedback records per taxonomy node

curl http://localhost:8080/v1/taxonomy/runs/$RUN_ID/record-counts \
    -H "Authorization: Bearer $HUB_API_KEY"
{
  "counts": [
    {
      "node_id": "019f177f-9aa3-705e-8195-cea2aa187268",
      "record_count": 42
    }
  ]
}
Returns Examples
{
  "counts": [
    {
      "node_id": "019f177f-9aa3-705e-8195-cea2aa187268",
      "record_count": 42
    }
  ]
}