Skip to main content
POST
/
api
/
groups
/
estimate
Estimate group count
curl --request POST \
  --url https://api.agentixx.io/api/groups/estimate \
  --header 'Content-Type: application/json' \
  --header 'x-tenant-id: <api-key>' \
  --cookie better-auth.session_token= \
  --data '
{
  "filters": {
    "version": 1,
    "logic": "AND",
    "conditions": [
      {
        "field": "language",
        "operator": "equals",
        "value": "en"
      }
    ]
  }
}
'
{
  "count": 123
}

Authorizations

better-auth.session_token
string
cookie
required

Session cookie set by Better Auth on sign-in.

x-tenant-id
string
header
required

Tenant/workspace UUID. Required on all /api/* endpoints.

Body

application/json

Estimate contact count for a filter set without persisting

filters
object
required

Response

Contact count estimate

count
number
required