Segments
Estimate unsaved rules
POST
/segments/estimateNeedscontent.viewThe same estimate for rules that aren't saved yet.
Authorization
secretKeyheader
AuthorizationBearer <sk_…>A secret API key from Settings → API keys. It acts with its creator's role.
Request Body
application/json- body
rules*Who sees it: trait, behaviour and segment rules.
Response Body
OK
application/json- 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"
}
}Estimate a segment's sizeGET
Identified users active in the last 30 days who match, best effort. Trait rules can't be checked (traits aren't stored), so `upperBound` is true when there are any. 30 estimates a minute per workspace.
List tracked eventsGET
Custom events your app sent with `Cueston.track()`, most recent first (at most 1,000).