segments_compliance_summary
The compliance answer for a whole segment (lead list): allowed of total contacts can be emailed; set_aside are held back by a rule now (opt-outs, bounces, countries that need consent, personal mailboxes, …); would_set_aside more will be held back once rules still in warn mode are switched on. top lists the biggest set-aside groups as {label, count}.
The same gates as campaigns_preflight, over every non-archived lead in the segment (not only NEW ones). headline.summary is a one-line sentence to quote to the user; groups and reasons (with why/fix) are the details. Lists over 20,000 leads are sampled and scaled (sample). Cached for 5 minutes, and refreshed when leads are added, removed or edited; pass refresh=true after uploading consent or suppression records.
Method: GET /api/v1/workspaces/{workspace_sqid}/segments/{sqid}/compliance-summary/
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"sqid": "<sqid>"
},
"name": "segments_compliance_summary"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sqid | Yes | ||
| refresh | No | Recompute instead of using the 5-minute cache. |