Segments
Estimate Segment
POST
apiKeyAuthheader
x-api-key<token>FastStats API key. Pass it in the x-api-key header or as a Bearer token in the Authorization header.
idOrSlug*stringapplication/json- body
segmentId?string|null|nulltype*stringValue in
"dynamic""static"definition*members*array<>SegmentEstimate
application/json- response
subjects*number|total*number|sample*array<>Example Request
curl -X POST 'https://api.faststats.dev/v0/projects/string/segments/estimate' \ -H 'Content-Type: application/json' \ -d '{ "type": "dynamic", "definition": { "type": "group", "match": "all", "negate": true, "children": [ {} ] }, "members": [ { "kind": "identifier", "value": "string", "excluded": true } ]}'Example Response
{ "subjects": 0, "total": 0, "sample": [ { "userKey": "string", "label": "string", "name": "string", "email": "string", "anonymous": true } ]}