Docs
Segments

Estimate unsaved rules

POST/segments/estimateNeedscontent.view

The same estimate for rules that aren't saved yet.

Authorization

secretKey
headerAuthorizationBearer <sk_…>

A secret API key from Settings → API keys. It acts with its creator's role.

Request Body

application/json
  1. body
rules*

Who sees it: trait, behaviour and segment rules.

Response Body

OK

application/json
  1. response
estimate*
Shell
curl -X POST 'https://app.cueston.com/api/segments/estimate' \
  -H 'Content-Type: application/json' \
  -d '{
  "rules": {}
}'
Example Response
JSON
{
  "estimate": {
    "count": 1280,
    "activeUsers": 5400,
    "evaluated": 5000,
    "upperBound": true,
    "days": 0,
    "note": "Clearer copy on step 2"
  }
}