PelekaPeleka Developers
API ReferenceAudienceSegments

Estimate how many contacts match a set of segment rules, without saving a segment

POST
/api/v1/segments/estimate
X-API-Key<token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://example.com/api/v1/segments/estimate" \  -H "Content-Type: application/json" \  -d '{    "rules": {}  }'
{  "data": {    "count": 1234  }}