CLI command
tinbox create-segment
Save a multi-condition SEGMENT of an audience (a reusable rule-based slice, e.g. 'members tagged vip who opened the last campaign'). Requires a human approval step in chat — the approval card shows the segment name and how many members currently match (a live preview of the conditions). For a 'saved' segment, provide `conditions` (a match mode + rules); a 'static' segment has none (members are added manually later). To just PREVIEW reach without saving, use preview_segment instead. `newsletter:send` permission is required.
Generated from tool: create_segmentUsage
sh
tinbox create-segment --audienceId <audienceId> --name <name> --type <type> --conditions <conditions>Flags
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
--audienceId | string | yes | — | The audience the segment belongs to. |
--name | string | yes | — | A name for the segment. |
--type | string | yes | — | 'saved' (rule-based, default) or 'static' (manual membership). |
--conditions | string | yes | — | The rule tree for a saved segment (omit for static). |