sendmock route create
Add a route.
sendmock route create [flags]
| Flag | Type | Description |
|---|---|---|
| --priority <priority>required | number | Lower runs first.Example: 10 |
| --description <description>required | string | A name for the route, shown in the list.Example: Ticket replies to the helpdesk |
| --filter <filter>required | InboundRouteFilter (JSON) | Which incoming emails the route takes. |
| --actions <actions>required | InboundRouteAction[] (JSON) | What the route does with a matching email, in order.Example: [{"kind":"forward_url","url":"http://localhost:8000/webhooks/mail"}] |
Example
sendmock route create --priority 10 --description 'Ticket replies to the helpdesk' --filter '{"kind":"match_recipient","pattern":"reply\\+(?P<token>.+)@reply.app.test"}' --actions '[{"kind":"forward_url","url":"http://localhost:8000/webhooks/mail"}]'Output with --json: InboundRoute. Exit codes: 0, 1, 2.
- API
- POST
/api/v1/inbound-routes - MCP tool
sendmock_inbound_route_create- In the app
- Webhooks > Inbound routes > Add route