ContactGroups
Preview contact group criteria
Evaluates group criteria without persisting, returning the matching contact count and a sample of matches.
POST
Evaluates group criteria without persisting, returning the matching contact count and a sample of matches.
apiKeyheader
x-api-key<token>application/json- body
criteria*Success
application/json- response
count*integerRange
0 <= value <= 9007199254740991sample*array<>import { createClient } from "samva";const samva = createClient({ apiKey: process.env.SAMVA_API_KEY! });const result = await samva.contactGroups.preview({ "criteria": {}});Example Response
{ "count": 0, "sample": [ { "id": "string", "name": "string", "status": "string" } ]}