Count feedback records
client.feedbackRecords.count(FeedbackRecordCountParams { tenant_id, created_since, created_until, 23 more } query, RequestOptionsoptions?): FeedbackRecordCountResponse { count }
GET/v1/feedback-records/count
Returns the total number of feedback records matching the given filters. Supports the same query parameters as the list endpoint.
Parameters
Returns
Count feedback records
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.feedbackRecords.count({ tenant_id: 'org-123' });
console.log(response.count);{
"type": "https://hub.formbricks.com/problems/validation",
"title": "Validation Failed",
"status": 400,
"code": "validation",
"detail": "One or more request parameters are invalid",
"request_id": "0190a1b2-c3d4-7e5f-8a9b-0c1d2e3f4a5b",
"invalid_params": [
{
"name": "sentiment_score_min",
"reason": "must be less than or equal to sentiment_score_max"
}
]
}Returns Examples
{
"type": "https://hub.formbricks.com/problems/validation",
"title": "Validation Failed",
"status": 400,
"code": "validation",
"detail": "One or more request parameters are invalid",
"request_id": "0190a1b2-c3d4-7e5f-8a9b-0c1d2e3f4a5b",
"invalid_params": [
{
"name": "sentiment_score_min",
"reason": "must be less than or equal to sentiment_score_max"
}
]
}