Go Quickstart
Complete end-to-end guide to send multi-channel notifications from a Go microservice — from API key generation to template creation, event triggering, and delivery verification.
1. Sign Up & Get API Key
Register at https://app.hubnest.io. Go to Developer → API Keys → Generate New Key. Copy the rawKey (hn_live_...) — shown only once. Add it to your environment: export HUBNEST_API_KEY=hn_live_xxxxx.
2. Create a Subscriber
Create a subscriber to represent a user in your system. Each subscriber has an externalId (your DB user ID), email, phone, and channel preferences.
3. Create a Notification Template
Create a template that defines the notification content. Use {{variableName}} placeholders for dynamic content.
4. Connect a Channel Provider
Go to Developer → Channels → Add Provider at https://app.hubnest.io. Use the built-in Demo Email for instant testing, or connect AWS SES, SendGrid, Twilio, MSG91, WhatsApp, FCM, or APNs for production.
5. Initialize Go Module
Create and initialize a new Go module:
6. Trigger Event — Rules + Workflows Fire Automatically
POST to /api/v1/events using Go's net/http package — no external dependencies needed:
7. Direct Send & Bulk Send
Direct send bypasses Rules/Workflows. Bulk campaign fans out to multiple recipients via Kafka:
8. Verify Delivery in Logs
Run your app with: go run main.go. Then go to Developer → Logs at https://app.hubnest.io to verify delivery status, latency, provider, and cost.
Next steps
Configure AWS SES IAM keys, verified domains, and sending rate limits.
Connect SendGrid API Keys and verified sender identities.
Connect Twilio Account SID, Auth Token, and phone numbers.
Connect Meta WhatsApp Cloud API access tokens and phone number IDs.