create_segment
Create a contact segment for a sending domain, using filters like status, email, or properties to group contacts. Segments are unique per domain.
Instructions
Create a segment on a sending domain (POST /segments, domain-first). Segment names are unique WITHIN a domain but reusable across domains. filter supports { status, email_contains, property_filters }.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Segment name. | |
| domain | Yes | The sending domain this resource belongs to (domain-first model), e.g. 'yourdomain.com' — one of your domains. | |
| filter | No | e.g. { status: 'subscribed', email_contains: '@acme.com', property_filters: [{ key, operator: 'eq'|'contains'|'exists', value? }] }. |