List feedback records for a taxonomy node
client.taxonomy.nodes.listRecords(stringnodeID, NodeListRecordsParams { tenant_id, limit } query, RequestOptionsoptions?): NodeListRecordsResponse { data, limit }
GET/v1/taxonomy/nodes/{node_id}/records
Returns the feedback records assigned to a node and all of its (visible) descendant nodes, via the
clusters those nodes reference. Tenant-scoped; returns 404 if the node does not belong to the tenant
or has been removed. An empty data therefore means the node genuinely holds no records. The limit
in the response reflects the applied cap.
Parameters
nodeID: string
formatuuid
Returns
List feedback records for a taxonomy node
import FormbricksHub from '@formbricks/hub';
const client = new FormbricksHub({
apiKey: process.env['HUB_API_KEY'], // This is the default and can be omitted
});
const response = await client.taxonomy.nodes.listRecords('019f177f-9abe-78cd-8008-f40b58e3147d', {
tenant_id: 'org-123',
});
console.log(response.data);{
"data": [
{
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"collected_at": "2019-12-27T18:11:19.117Z",
"created_at": "2019-12-27T18:11:19.117Z",
"field_id": "field_id",
"field_type": "text",
"source_type": "source_type",
"submission_id": "submission_id",
"tenant_id": "tenant_id",
"updated_at": "2019-12-27T18:11:19.117Z",
"emotions": [
"joy"
],
"field_group_id": "field_group_id",
"field_group_label": "field_group_label",
"field_label": "field_label",
"language": "language",
"metadata": {},
"sentiment": "very_negative",
"sentiment_score": -1,
"source_id": "source_id",
"source_name": "source_name",
"translation_lang_key": "translation_lang_key",
"user_id": "user_id",
"value_boolean": true,
"value_date": "2019-12-27T18:11:19.117Z",
"value_id": "value_id",
"value_number": 0,
"value_text": "value_text",
"value_text_translated": "value_text_translated"
}
],
"limit": 0
}Returns Examples
{
"data": [
{
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"collected_at": "2019-12-27T18:11:19.117Z",
"created_at": "2019-12-27T18:11:19.117Z",
"field_id": "field_id",
"field_type": "text",
"source_type": "source_type",
"submission_id": "submission_id",
"tenant_id": "tenant_id",
"updated_at": "2019-12-27T18:11:19.117Z",
"emotions": [
"joy"
],
"field_group_id": "field_group_id",
"field_group_label": "field_group_label",
"field_label": "field_label",
"language": "language",
"metadata": {},
"sentiment": "very_negative",
"sentiment_score": -1,
"source_id": "source_id",
"source_name": "source_name",
"translation_lang_key": "translation_lang_key",
"user_id": "user_id",
"value_boolean": true,
"value_date": "2019-12-27T18:11:19.117Z",
"value_id": "value_id",
"value_number": 0,
"value_text": "value_text",
"value_text_translated": "value_text_translated"
}
],
"limit": 0
}