sendmock email tag-rules create
Add a tag rule at the end of the list.
sendmock email tag-rules create [flags]
| Flag | Type | Description |
|---|---|---|
| --name <name>required | string | A name for the rule, shown in the list.Example: Tag password resets |
| --filter <filter> | object (JSON) | The webhook rule filter, over email fields; null matches every email. |
| --tag <tag>required | string | The tag added to each matching email.Example: password-reset |
| --enabledrequired | boolean | Off rules are kept but skipped. --no-enabled sets it to false. |
Example
sendmock email tag-rules create --name 'Tag password resets' --tag password-reset --enabled
Output with --json: TagRule. Exit codes: 0, 1, 2.
- API
- POST
/api/v1/tag-rules - MCP tool
sendmock_tag_rule_create- In the app
- Settings > Email > Tag rules > Add rule