API Reference
Complete API documentation for the Spark Strand notifications service. The API supports independent applications where each app manages its own provider credentials and gets isolated endpoints.
Base URL
https://notifications.sparkstrand.com/apiHow It Works
App Registration
Each application registers with the notification service using its own provider API keys. The system creates isolated provider instances and automatically routes notifications through the best available provider for each channel.
// App registration flow
POST /api/applications/register
ā Creates isolated provider instances
ā Routes notifications per app
ā Provides app-specific endpointsProvider Isolation
Each registered app gets its own isolated provider instances:
- ⢠sporty-expats-novu: Novu provider with SportyExpats' API keys
- ⢠sporty-expats-resend: Resend provider with SportyExpats' API keys
- ⢠tax-done-novu: Novu provider with TaxDone's API keys
- ⢠venture-direction-twilio: Twilio provider with VentureDirection's credentials
Authentication
API Key
All API requests require an API key to be included in the Authorization header.
Authorization: Bearer YOUR_API_KEYRate Limiting
API requests are rate limited per application to prevent abuse.
- ⢠Standard: 100 requests per minute per app
- ⢠Bulk operations: 10 requests per minute per app
- ⢠Health checks: 1000 requests per minute per app
- ⢠App registration: 5 registrations per hour
API Endpoints
Health Check
GET /health
Check service health, system resources, and provider status
App Registration
POST /applications/register
Register a new application with provider credentials
App Status
GET /applications/{appId}/status
Get application status and provider health
Send Notification
POST /notifications
Send a notification via the unified service
Get Notification
GET /notifications/{id}
Get notification status and delivery details
List Notifications
GET /notifications
List notifications with pagination and filtering
Provider Status
GET /providers/status
Get status of all registered providers
Metrics
GET /metrics
Get system metrics and delivery statistics
Request/Response Examples
App Registration
Send Notification
Error Handling
Common Error Codes
Monitoring & Analytics
Provider Status
Monitor the health and availability of all registered providers:
- ⢠Provider health status
- ⢠Rate limit usage
- ⢠Error rates and types
- ⢠Response times
Delivery Metrics
Track notification delivery performance:
- ⢠Delivery success rates
- ⢠Channel performance
- ⢠App-specific statistics
- ⢠Fallback usage