Notification Channels

Configure and use multiple notification channels through a unified API.

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 SpeedRich ContentTracking Best For
Email1-5 secondsDetailed notifications, marketing
SMS< 1 secondUrgent alerts, 2FA codes
Slack< 1 secondTeam notifications, alerts
Telegram< 1 secondBot interactions, updates
WhatsApp1-3 secondsCustomer communication
WebSocket< 1 secondLive in-app updates
MQTT< 1 secondIoT and device events

Configuration Steps

  1. 1

    Navigate to Channels

    Go to your project dashboard and select the Channels section.

  2. 2

    Select Provider

    Choose your preferred provider for each channel (e.g., Twilio for SMS).

  3. 3

    Enter Credentials

    Add your API keys, tokens, or OAuth credentials for the provider.

  4. 4

    Test Connection

    Send a test notification to verify the configuration works.

  5. 5

    Start Sending

    Use the channel in your API calls to send notifications.