preview_segment
Preview an audience without saving or sending. Pass a saved segment ID or an inline definition to see contact count and sample for filter validation.
Instructions
Resolve an audience WITHOUT saving or sending anything: pass a saved segmentId OR an inline definition and get { count, sample: ≤10 contacts }. Use this to sanity-check a filter before attaching it to a campaign.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sender | No | Product/sender externalId sent as X-Drin-Sender. Required only for account-wide API keys; overrides the server's default sender. | |
| segmentId | No | A saved segment to resolve. | |
| definition | No | An inline { match, conditions[] } filter to resolve instead. |