Notification Channels
Configure and use multiple notification channels through a unified API.
Send rich HTML emails with tracking
SMTPSendGridMailgunSES
SMS
Send text messages worldwide
TwilioNexmoAWS SNS
Slack
Post messages to Slack channels
Slack API
Telegram
Send messages via Telegram bots
Bot API
Business messaging via WhatsApp
Business API
WebSocket
Send live events to your custom WebSocket endpoint
Custom WSWSS
MQTT
Publish notifications to MQTT brokers and device topics
MQTTMQTTS
Unified API
Send to multiple channels with a single API call:
// Send to multiple channels at once
const response = await client.notifications.send({
type: ['email', 'sms', 'websocket'],
content: 'Your order #12345 has been shipped!',
target: [
'user@example.com', // Email
'+1234567890', // SMS
'user-123' // WebSocket recipient
],
metadata: {
orderId: '12345',
trackingUrl: 'https://track.example.com/12345'
}
});Channel Comparison
| Channel | Delivery Speed | Rich Content | Tracking | Best For |
|---|---|---|---|---|
| 1-5 seconds | Detailed notifications, marketing | |||
| SMS | < 1 second | Urgent alerts, 2FA codes | ||
| Slack | < 1 second | Team notifications, alerts | ||
| Telegram | < 1 second | Bot interactions, updates | ||
| 1-3 seconds | Customer communication | |||
| WebSocket | < 1 second | Live in-app updates | ||
| MQTT | < 1 second | IoT and device events |
Configuration Steps
- 1
Navigate to Channels
Go to your project dashboard and select the Channels section.
- 2
Select Provider
Choose your preferred provider for each channel (e.g., Twilio for SMS).
- 3
Enter Credentials
Add your API keys, tokens, or OAuth credentials for the provider.
- 4
Test Connection
Send a test notification to verify the configuration works.
- 5
Start Sending
Use the channel in your API calls to send notifications.