SDK Documentation

Official SDKs for integrating with the Notification System.

Common Features

Automatic Retries

Failed requests are automatically retried with exponential backoff

Type Safety

Full type definitions for TypeScript, Go, Dart, PHP, Rust, Kotlin, and Swift

Error Handling

Typed exceptions for API errors, network errors, and timeouts

Integration APIs

Workspace projects, platform integrations, and per-integration API keys

Configurable

Custom base URL, timeout, and retry settings

Quick Comparison

SDKPackage Version Min Runtime
JavaScript@notification-system/sdk1.2.0Node.js 16+
Gosdk-go1.2.0Go 1.18+
PHPnotification-system/sdk1.2.0PHP 8.0+
Flutternotification_system_sdk1.2.0Dart 2.17+
Rustnotification-system-sdk1.0.0Rust 1.75+
Androidcom.notificationsystem:sdk1.0.0Kotlin 1.9+
iOSNotificationSystemSDK1.0.0iOS 13+ / Swift 5.9+
Lynx@notification-system/lynx-sdk1.0.0Lynx fetch runtime

Send Notification Example

import { NotificationClient } from '@notification-system/sdk';

const client = new NotificationClient({
  apiKey: process.env.NOTIFICATION_API_KEY,
  timeout: 30000,
  retries: 3,
});

// Send notification
const response = await client.notifications.send({
  type: ['email', 'sms', 'slack'],
  content: 'Your order has been shipped!',
  target: ['user@example.com', '+1234567890', '#orders'],
  metadata: {
    orderId: '12345',
    trackingNumber: 'ABC123',
  },
});

console.log('Notification ID:', response.id);
console.log('Status:', response.status);