Skip to content

Latest commit

 

History

History
28 lines (18 loc) · 829 Bytes

File metadata and controls

28 lines (18 loc) · 829 Bytes

createRoute

Create a route (match, action, destination).

HTTP: POST /api/routes

Parameters

Field Type Required Description
match string Address pattern: exact, @domain, addr+@domain, or /regex/.
action string What to do with matching mail. Defaults to webhook.
destination string Required for action webhook (URL) or forward (address).
agentPrompt string Required for action agent — instructions for the inbox agent.

Returns

any

Example

Object res = mk.createRoute(Map.of("match", "*@app.mailkite.dev", "action", "webhook", "destination", "https://app.com/hooks"));

← All methods · Docs · mailkite.dev