Novu: API Design — Triggers, Subscribers & Templates
Docs-backedREST API at api.novu.co/v1/. Trigger workflow: POST /events/trigger with name (workflow identifier), to (subscriber), and payload (template variables). Subscriber management: POST /subscribers for creation with channel credentials (email, phone, push tokens). Template management: define workflows with channel steps (email, SMS, push, in-app, chat) and Handlebars content templates. Topic management enables broadcasting to subscriber groups. Preference management: GET/PATCH /subscribers/{id}/preferences. In-app notifications: GET /notifications returns in-app feed items. The API design follows Knock's pattern with some differences: workflow definition is API-driven (not just dashboard), and the topic system provides pub/sub-style subscriber grouping. Batch triggers send notifications to multiple subscribers.