Webhooks
Receive real-time notifications when creators are updated, analysis completes, or other events occur in the Influship system.Overview
Webhooks allow you to receive instant notifications about events in the Influship system without polling the API. This is especially useful for:- Creator Updates: When creator profiles are refreshed with new data
- Analysis Results: When brand safety or AI analysis completes
- System Events: Rate limit warnings, account changes, etc.
Setting Up Webhooks
1. Configure Webhook Endpoint
In your dashboard, navigate to Settings > Webhooks and add your endpoint URL:2. Verify Endpoint
Your endpoint must respond to verification requests:Webhook Events
Creator Updated
Triggered when a creator’s profile data is refreshed:Analysis Complete
Triggered when brand safety or AI analysis finishes:Rate Limit Warning
Triggered when approaching rate limits:Security
Signature Verification
All webhooks include a signature for verification:Best Practices
Idempotency
Handle duplicate webhooks gracefully using event IDs or timestamps.
Timeouts
Respond to webhooks within 5 seconds to avoid retries.
Retries
Implement exponential backoff for failed webhook processing.
Logging
Log all webhook events for debugging and monitoring.
Error Handling
Retry Logic
If your endpoint returns an error (4xx or 5xx), we’ll retry with exponential backoff:- 1st retry: 1 minute
- 2nd retry: 5 minutes
- 3rd retry: 15 minutes
- 4th retry: 1 hour
- 5th retry: 4 hours
Dead Letter Queue
After 5 failed attempts, the webhook is moved to a dead letter queue. You can:- Check the webhook status in your dashboard
- Manually retry failed webhooks
- Download failed webhook payloads for debugging
Testing Webhooks
Local Development
Use ngrok or similar tools to expose your local server:Webhook Testing Tool
Use our webhook testing tool to simulate events:Monitoring
Webhook Status
Check webhook delivery status in your dashboard:- Delivered: Successfully sent and acknowledged
- Pending: Queued for delivery
- Failed: Delivery failed after all retries
- Retrying: Currently retrying after failure
Metrics
Monitor webhook performance:- Delivery success rate
- Average response time
- Failed webhook count
- Retry attempts
Common Issues
Webhook Not Received
Check Endpoint URL
Check Endpoint URL
- Verify the URL is accessible from the internet
- Ensure HTTPS is used (HTTP only for localhost)
- Check that the endpoint responds to POST requests
Verify Signature
Verify Signature
- Ensure you’re using the correct webhook secret
- Check that signature verification is working
- Verify the payload format matches expectations
Check Logs
Check Logs
- Review server logs for incoming requests
- Check for any error responses
- Verify request headers and body format