What are Webhooks?
Webhooks allow your application to receive real-time notifications when specific events occur within the Nudj platform. Instead of constantly polling our API for updates, webhooks push data to your application immediately when something happens. When an event occurs (such as a user completing a challenge or earning a reward), Nudj sends an HTTP request to your configured webhook endpoint with event details.Interactive Testing Available: You can configure and test webhooks directly from this documentation using our interactive API playground. No need to write code to get started!
Key Features
Real-time Notifications
Receive instant notifications when events occur, eliminating the need for polling
Reliable Delivery
Built-in retry logic with configurable attempts ensures your webhook receives the data
Flexible Configuration
Choose which events to receive and customize HTTP methods and headers
Secure Authentication
Custom headers support for secure webhook authentication
How Webhooks Work
- Event Occurs: A user action or system event triggers within your Nudj community
- Webhook Triggered: Nudj identifies configured webhooks for the event type
- HTTP Request Sent: A POST request is sent to your webhook URL with a JSON payload
- Response Processed: Your application processes the webhook data
- Retry if Needed: If delivery fails, Nudj automatically retries based on your configuration
Webhook Configuration
Webhooks are configured at the organisation level, meaning all communities within an organisation share the same webhook configuration. You can manage webhooks from the Admin Panel under Settings → Organisation → Webhooks.Basic Configuration
| Field | Description | Required |
|---|---|---|
| URL | The endpoint where webhook payloads will be sent (HTTPS recommended) | Yes |
| Events | Specific event types you want to receive notifications for | Yes |
| Max Retries | Number of delivery attempts on failure (default: 3) | No |
| Enabled | Toggle to enable/disable the webhook without deleting it | No |
| Created At | Timestamp showing when the webhook was created | Auto |
All webhooks use the POST HTTP method. Your endpoint should accept POST requests with a JSON payload.
Custom Headers (Advanced)
You can configure custom HTTP headers for webhooks that require authentication. This is useful when your webhook endpoint requires:- API Keys:
x-api-key: YOUR_SECRET_KEY - Bearer Tokens:
Authorization: Bearer YOUR_TOKEN - Custom Authentication: Any header your endpoint expects
Event Filtering
You can configure webhooks to receive notifications for specific event categories:- User Activity: Challenge completions, action participations, social interactions
- Achievements & Rewards: Achievement completions, reward claims and redemptions
- Content Engagement: Post likes, comments, community visits
- User Profile Changes: Profile updates, variable captures
- System Events: Custom events, referral usage
Quick Start
Configure Your Webhook
Use the interactive API playground to configure your webhook:
Test with Live Endpoints
Try the configuration directly in our testing guide with webhook.site or ngrok
Security Considerations
- Custom Headers: Use authentication headers to verify request authenticity
- HTTPS Only: Always use HTTPS endpoints for webhook URLs
- IP Allowlisting: Consider restricting webhook traffic to known Nudj IP ranges
- Request Validation: Verify the request structure matches expected webhook format
How Webhooks Are Delivered
What You Need to Know
- Success: Return any 2xx status code (200, 201, 204, etc.)
- Retries: Failed webhooks retry up to 3 times with 5-second delays
- Timeout: Respond within 5 seconds to avoid timeouts
- Order: Events are delivered in the order they occur
Supported Events
Nudj supports webhook notifications for key platform events. See our Event Catalog for the complete list of available events and their payload structures.Event Categories
- Challenge Events:
challenge.started,challenge.completed - Achievement Events:
achievement.completion - Reward Events:
reward.claim,reward.redemption,reward.distribution - User Events: Profile updates, community joins
- Social Events: Post interactions, comments, shares
- Custom Events: Organization-specific custom events
Where to Start
Test Webhooks
Configure and test webhooks interactively
Browse Events
See all available events with examples
Code Examples
Ready-to-use integrations for popular platforms
Build Your Handler
Step-by-step implementation guide

