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.
Authorization
Authorization<token>API key authentication. Allowed headers-- "Authorization: ApiKey <novu_secret_key>".
In: header
Request Body
application/jsonRequiredaddressRequiredstringInbox address local part (e.g. "support", "*")
agentIdstringAgent identifier; required when type is agent, unused for webhook
typeRequiredstringValue in:
"agent" | "webhook"dataobjectOptional string key-value metadata (max 10 keys, 500 characters total for keys+values).
Path Parameters
domainRequiredstringHeader Parameters
idempotency-keystringA header for idempotency purposes
Response Body
Created
_idRequiredstring_domainIdRequiredstringaddressRequiredstringagentIdstringInternal id of the destination agent. Only present for agent routes.
typeRequiredstringValue in:
"agent" | "webhook"_environmentIdRequiredstring_organizationIdRequiredstringcreatedAtRequiredstringupdatedAtRequiredstringdataobjectString key-value metadata (max 10 keys, 500 characters total when set via API).