Interactive API Playground: Click the cards below to open the API playground where you can directly test and configure your webhooks with your API credentials.
Interactive Webhook Configuration
Configure and test your webhooks using the interactive API playground:Get Configuration
View your current webhook settings
Update Configuration
Configure webhook events and URL
Get Current Configuration
Retrieve your current webhook configuration to see what events you’re subscribed to.Try It Now
Click here to get your current webhook configuration using the interactive API playground
Example Response
Configure Webhooks
Update your webhook configuration to subscribe to specific events and set your endpoint URL.Try It Now
Click here to configure your webhooks using the interactive API playground
Configuration Examples
- Basic Setup
- Full Integration
- Development Setup
Start with essential events for most integrations:
Testing Your Webhook
Follow these steps to test your webhook configuration:Step 1: Set Up a Test Endpoint
- Webhook.site
- ngrok
- RequestBin
- Visit webhook.site
- Copy your unique URL
- Use it as your webhook URL in the configuration
- Monitor incoming requests in real-time
Step 2: Configure Your Webhook
Use the PUT endpoint to set your test webhook URL:Step 3: Trigger Test Events
Perform actions in your Nudj community to trigger webhook events:| Action | Triggered Event | Expected Payload |
|---|---|---|
| Complete a challenge | challenge-completion | Contains challengeId, userId |
| Earn rewards | reward-distribution | Contains points, XP, rewards |
| Unlock achievement | achievement-completion | Contains achievement details |
| Purchase from shop | shop-purchase | Contains purchase details |
| Like a post | post-like | Contains postId |
Step 4: Verify Delivery
Check your test endpoint to confirm webhook delivery:What to Look For:
- HTTP method matches configuration (POST/PUT/GET)
- Custom headers are present
- Event payload structure is correct
- Response status is 2xx
Testing Checklist
Use this checklist to ensure your webhook integration is working correctly:Update Configuration
Use PUT endpoint to set your webhook URL and events
Verify Configuration
Use GET endpoint to confirm settings are saved
Common Test Scenarios
Testing Retry Logic
To test the retry mechanism:- Configure webhook with
maxRetries: 3 - Have your endpoint return
500status - Observe 3 delivery attempts with 5-second delays
- After 3 failures, webhook marked as failed
Testing Authentication
Verify your authentication headers:Testing Idempotency
Ensure duplicate events are handled:Monitoring Webhook Health
Key Metrics to Track
- Delivery Success Rate: Should be > 99%
- Average Response Time: Should be < 1 second
- Retry Rate: Should be < 1%
- Failed Deliveries: Should be investigated immediately
Health Check Endpoint
Implement a health check for your webhook:Troubleshooting Test Issues
Webhook not receiving events
Webhook not receiving events
- Verify webhook is enabled (
isEnabled: true) - Check URL is publicly accessible (not localhost)
- Confirm events are in the subscription list
- Ensure organization has active events
Authentication errors
Authentication errors
- Verify custom headers match exactly
- Check for case sensitivity in header names
- Ensure HTTPS is used (not HTTP)
Payload validation failures
Payload validation failures
- Compare received payload with documentation
- Check JSON parsing for large payloads
- Verify character encoding (UTF-8)
Intermittent failures
Intermittent failures
- Check for timeout issues (> 5 seconds)
- Monitor server resource usage
- Review network connectivity
- Check for rate limiting

