Route a message to one of your registered routes (by routeId or address), running that route's action — agent, webhook, or forward. The route must already exist on your account; arbitrary destinations are not allowed.
HTTP: POST /v1/route
| Field | Type | Required | Description |
|---|---|---|---|
routeId |
string | Target route by id (rte_…). One of routeId or address is required. The route must already… | |
address |
string | Target route by the address it matches. One of routeId or address is required. | |
from |
string | ✓ | Sender address recorded on the message. |
subject |
string | Optional subject line. | |
text |
string | Plain-text body. | |
html |
string | HTML body. |
route-response — see the route-response schema.
Object res = mk.route(Map.of("routeId", "rte_1", "from", "ops@example.com", "subject", "Process this", "text", "Please handle."));