List taxonomy runs
client.taxonomy.runs.list(RunListParams { tenant_id, field_id, limit, 3 more } query, RequestOptionsoptions?): RunListResponse { data }
GET/v1/taxonomy/runs
Returns taxonomy run history for a tenant, most recent first. Optionally filter by scope_type, source_type, field_id, and source_id. source_id is a tri-state filter: omit it for no source filter, pass an empty string to scope to the canonical "no source" bucket, or pass a concrete value to match that source.
Parameters
Returns
List taxonomy runs
import FormbricksHub from '@formbricks/hub';
const client = new FormbricksHub({
apiKey: process.env['HUB_API_KEY'], // This is the default and can be omitted
});
const runs = await client.taxonomy.runs.list({ tenant_id: 'org-123' });
console.log(runs.data);{
"data": [
{
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"cluster_count": 0,
"created_at": "2019-12-27T18:11:19.117Z",
"embedding_count": 0,
"field_id": "field_id",
"node_count": 0,
"record_count": 0,
"scope_type": "field",
"source_id": "source_id",
"source_type": "source_type",
"status": "pending",
"tenant_id": "tenant_id",
"updated_at": "2019-12-27T18:11:19.117Z",
"error": "error",
"error_code": "insufficient_data",
"field_label": "field_label",
"finished_at": "2019-12-27T18:11:19.117Z",
"metrics": {
"foo": "bar"
},
"params": {
"foo": "bar"
},
"started_at": "2019-12-27T18:11:19.117Z"
}
]
}Returns Examples
{
"data": [
{
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"cluster_count": 0,
"created_at": "2019-12-27T18:11:19.117Z",
"embedding_count": 0,
"field_id": "field_id",
"node_count": 0,
"record_count": 0,
"scope_type": "field",
"source_id": "source_id",
"source_type": "source_type",
"status": "pending",
"tenant_id": "tenant_id",
"updated_at": "2019-12-27T18:11:19.117Z",
"error": "error",
"error_code": "insufficient_data",
"field_label": "field_label",
"finished_at": "2019-12-27T18:11:19.117Z",
"metrics": {
"foo": "bar"
},
"params": {
"foo": "bar"
},
"started_at": "2019-12-27T18:11:19.117Z"
}
]
}