HTTP
endpoint (/api/novu
or similar) to be exposed by your application. This endpoint is used to receive events from our Worker Engine.
You can view the Bridge Endpoint as a webhook endpoint that Novu will call when it needs to retrieve contextual information for a given subscriber and notification.
Using the npx novu init
command creates a Bridge application for you with a Bridge Endpoint ready to go.
serve
functionserve
function that abstracts away:
GET
, POST
, PUT
and OPTIONS
requestsserve
functions for the following frameworks:
serve
functionserve
function like the following example:
What is the difference between tunnel url and bridge url?
npx novu@latest dev
command. It is used to test your notifications by triggering them from the Studio UI. For local development and testing, you can use the tunnel url as bridge url. For production, you should use deployed application url with bridge endpoint as the bridge url.Is it necessary to have bridge url publicly accessible?
Can endpoint other than /api/novu be used?