For event types and channel details, see Notifications.
Prerequisites
- Kadoa account with API key
- SDK installed:
npm install @kadoa/node-sdkoruv add kadoa-sdk
Quick Start
The SDK reuses existing channels with the same name. Running setup multiple times won’t create duplicates.
Channel Types
Slack
Webhook
WebSocket
Receive events in real-timeFor reconnect, drain, and reliability semantics, see WebSockets.
Subscribe to All Events
Reusing Channels
Reference existing channels by IDTemplate-Managed Notifications
When a workflow is linked to a template that includes notifications, the notification settings are managed through the template. Attempting to modify notifications on a template-linked workflow returns a409 error. Unlink the workflow first, or update the template and apply the change.
Setup Notifications via API
Step 1: Create Notification Channels
First, create the channels you want to use for notifications. See Email, Webhooks and WebSockets for channel creation examples.Step 2: Subscribe to Events
Subscribe to events by sending a POST request to/v5/notifications/settings.
Workspace-Level Subscription
Apply notifications to all workflows:Workflow-Level Subscription
Apply notifications to a specific workflow:Step 3: Update Existing Settings
To add more channels to existing settings, use a PUT request:For payload formats, see Email, Webhooks, and WebSockets.