ContactGroups
Evaluate a dynamic contact group
Recomputes a dynamic contact group's membership from its criteria, returning counts of added, removed, and total members.
POST
Recomputes a dynamic contact group's membership from its criteria, returning counts of added, removed, and total members.
apiKeyheader
x-api-key<token>id*stringMatch
^cgrp_[0-9a-hjkmnp-tv-z]{16,24}$Success
application/json- response
added*integerRange
0 <= value <= 9007199254740991removed*integerRange
0 <= value <= 9007199254740991total*integerRange
0 <= value <= 9007199254740991import { createClient } from "samva";const samva = createClient({ apiKey: process.env.SAMVA_API_KEY! });const result = await samva.contactGroups.evaluateDynamic({ "id": "example"});Example Response
{ "added": 0, "removed": 0, "total": 0}