sendmock_inbound_route_create
Add a route.
Toolset rules.
| Input | Type | Description |
|---|---|---|
| priorityrequired | number | Lower runs first.Example: 10 |
| descriptionrequired | string | A name for the route, shown in the list.Example: Ticket replies to the helpdesk |
| filterrequired | InboundRouteFilter | Which incoming emails the route takes. |
| actionsrequired | InboundRouteAction[] | What the route does with a matching email, in order.Example: [{"kind":"forward_url","url":"http://localhost:8000/webhooks/mail"}] |
Example call
{
"name": "sendmock_inbound_route_create",
"arguments": {
"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"
}
]
}
}Result: InboundRoute
- API
- POST
/api/v1/inbound-routes - CLI
sendmock route create- In the app
- Webhooks > Inbound routes > Add route