Quick Start: For comprehensive reward integration patterns, see Reward Integration & Delivery. This guide focuses specifically on webhook implementation details.
Webhook Overview
Nudj’s webhook system sends HTTP POST requests to your endpoint whenever reward-related events occur, providing instant notification for reward processing.Real-Time Delivery
Instant NotificationsReceive reward events within milliseconds of occurrence for immediate user gratification.
Secure & Reliable
Enterprise SecurityHMAC-SHA256 signature verification and automatic retry logic with exponential backoff.
Comprehensive Events
Rich Event DataDetailed event payloads with user context, reward details, and challenge information.
Webhook Events
Nudj provides different event types for comprehensive reward tracking:- Core Reward Events
- Extended Events
Primary events for reward processing:
reward.earned
reward.earned
Triggered when: User completes a challenge and earns a reward
Webhook Configuration
Setting Up Webhooks in Nudj Admin
Endpoint Implementation
- Node.js / Express
- Python / Flask
Complete webhook endpoint with security and error handling:
Security Implementation
Signature Verification
Webhook security relies on HMAC-SHA256 signature verification:Testing Webhooks
Local Development Testing
Troubleshooting
Webhook Not Being Received
Webhook Not Being Received
Common causes and diagnostic steps:
- URL Accessibility: Is the webhook URL accessible from the internet?
- SSL Certificate: Is HTTPS properly configured?
- Firewall/Security: Are inbound HTTPS requests allowed?
- Response Time: Does endpoint respond within 30 seconds?
Signature Verification Failures
Signature Verification Failures
Debug signature verification:

