Skip to main content

Notification Channels

Overview

A Notification Channel is a delivery endpoint that WEDA uses to send alert notifications. Alert rules reference channels by channelId. When an alert triggers, WEDA dispatches a message to every channel listed in the rule.

Notification channels and templates are managed at the Tenant level and can be referenced by alert rules within that Tenant. Four channel types are supported:

TypeDelivery methodConfig highlights
emailSMTP emailHost, port, TLS/SSL, sender address, optional recipients
linemessageLINE Messaging APIChannel access token
teamsMicrosoft Teams Workflows webhookWebhook URL
webhookGeneric HTTP requestURL, method, content type

Channel Concepts

Channel and Template

A channel defines where to send the notification and how to connect. The template defines what to send — the message content with {variable} placeholders filled in at dispatch time.

When an alert rule fires, it supplies:

  • channelIds — which channels to deliver to
  • templateId — which template to render
  • recipients — any additional recipients (e.g. email addresses for an email channel)
  • variables — key/value pairs to substitute into the template

Delivery Settings

Each channel can define optional commonSettings that control delivery behavior:

SettingPurpose
timeoutMaximum time to wait for the delivery attempt
retryAttemptsNumber of retries on failure (0–10)
retryDelayWait time between retries

Channel Lifecycle

A channel can be enabled or disabled. Disabling a channel prevents it from being used for notification delivery without deleting its configuration. Enable it again to resume delivery.


Email Channel

Sends notifications via SMTP.

See Create Channel for full field reference. Required config fields: host, port, username, password, and senderEmail; senderName and secure are optional.

Use secure to configure whether the SMTP connection uses TLS/SSL. The selected port must match the SMTP server configuration.

Sensitive values such as the SMTP password are masked in API responses after creation.

Default Recipients

An email channel can define default recipients in its config. For a default recipient, target must be a valid email address and type must be to or cc.

Recipients supplied per-notification by an alert rule are handled separately from the channel's default recipients — see Alert Rules.


LINE Channel (linemessage)

Sends notifications via the LINE Messaging API. Requires a LINE Official Account and a channel access token from the LINE Developer Console.

See Create Channel for full field reference. The accessToken is masked in API responses after creation.

Send modes (sendMode):

ModeDescription
pushSend to one or more specified recipients
multicastSend a single request to multiple specified recipients

Set target on each recipient to the identifier required by the LINE Messaging API.


Microsoft Teams Channel (teams)

Sends notifications to a configured Microsoft Teams Workflows webhook URL.

See Create Channel for full field reference. The only required config field is url, which must be a Microsoft Teams Workflows HTTPS webhook URL.

A Teams channel sends the rendered notification content to that webhook URL. Templates targeting Teams use only content — the template subject is not used for Teams.


Webhook Channel

Sends notifications as an HTTP request to any custom endpoint.

See Create Channel for full field reference. Required config fields:

  • url — the target endpoint
  • methodGET, POST, PUT, PATCH, or DELETE
  • contentType — one of the values below

Content type values:

Config valueHTTP Content-Type
applicationJsonapplication/json
applicationFormUrlEncodedapplication/x-www-form-urlencoded
textPlaintext/plain

Templates

Templates define message content. They use {variableName} syntax for variable substitution:

Subject: [{severity}] Alert on {deviceName}
Content: Device {deviceName} triggered {eventType} at {timestamp}. Value: {value}

Provide values for all variables referenced by the selected template.

Template field limits: name up to 200 characters, subject up to 500 characters (email only), content up to 50,000 characters.

Template–Channel Type Binding

The channelTypes field is required — a template must declare one or more channel types it targets, for example:

["email", "teams"]

Using a template with a channel whose type is not in its channelTypes list fails at dispatch time. Note that the subject field is used only by the email channel type; teams, linemessage, and webhook use content only.


Operations

Channels

OperationAPIDescription
Create ChannelPOST /api/v1/notifications/channelsCreate a notification channel
List ChannelsGET /api/v1/notifications/channelsList all channels
Get ChannelGET /api/v1/notifications/channels/{channelId}Get channel configuration
Update ChannelPATCH /api/v1/notifications/channels/{channelId}Update config, recipients, or linked template
Enable / DisablePUT /api/v1/notifications/channels/{channelId}/statusEnable or disable delivery
Delete ChannelDELETE /api/v1/notifications/channels/{channelId}Remove the channel
List Available TypesGET /api/v1/notifications/channels/registry-info/typesChannel types enabled for this Tenant

Templates

OperationAPIDescription
Create TemplatePOST /api/v1/notifications/templatesCreate a message template
List TemplatesGET /api/v1/notifications/templatesList all templates
Get TemplateGET /api/v1/notifications/templates/{templateId}Get template detail
Update TemplatePATCH /api/v1/notifications/templates/{templateId}Modify template content
Delete TemplateDELETE /api/v1/notifications/templates/{templateId}Remove a template

Delivery Status

OperationAPIDescription
List MessagesGET /api/v1/notifications/messagesList notification delivery records
Get Message StatusGET /api/v1/notifications/messages/{messageId}Check delivery status of a specific message

A single message can be dispatched to multiple channels, so its overall status reflects the combined result: a partial status means some — but not all — of the target channels were delivered successfully.


Scenario

A system integrator creates an email channel and a Teams channel, then attaches both to a temperature alert rule:


Constraints

  • Sensitive values such as SMTP passwords and LINE access tokens are masked in API responses after creation
  • Channel names must be unique within the Tenant (max 100 characters, no whitespace)
  • A disabled channel is not used for notification delivery
  • email channels require a valid SMTP server reachable from the WEDA Cloud network

Last updated on Jul-16, 2026 | Version 1.1.0