Skip to Content
🎉 New release with new features and improvements! V0.0.2 Release →

Count Filtered Entities

Get the count of entities matching specific filters. This endpoint uses the BSH Search object as body to apply filters before counting.

POST /api/entities/:entityName/count

Parameters

ParameterTypeDescription
entityNamestringThe name of the entity to count

Request Body

The request body uses the BSH Search object format. Only the query field is required for filtering.

{ "entity": "EntityName", "filters": [ { "field": "status", "operator": "eq", "value": "active" } ] }

Response

{ "data": [ { "count": 25 } ], "status": "OK", "code": 200, "timestamp": 1234567890, "meta": {} }