Create a route
Creates a route on the domain that forwards inbound mail addressed to <address>@<domain> to either a webhook or an agent. Each address on a domain may only have a single route.
Authorizations
API key authentication. Allowed headers-- "Authorization: ApiKey <novu_secret_key>".
Headers
A header for idempotency purposes
Path Parameters
Body
Inbox address local part (e.g. "support", "*")
agent, webhook Agent identifier; required when type is agent, unused for webhook
Optional string key-value metadata (max 10 keys, 500 characters total for keys+values).
Response
Created
agent, webhook Internal id of the destination agent. Only present for agent routes.
String key-value metadata (max 10 keys, 500 characters total when set via API).