5 min readUpdated 2024-11-28
Webhooks
Receive real-time notifications when events occur in NeuroCron.
Setting Up Webhooks
- Go to **Settings → Webhooks**
- Click **Add Endpoint**
- Enter your URL and select events
- Save and test
Available Events
| Event | Description |
|---|---|
| campaign.created | New campaign created |
| campaign.updated | Campaign modified |
| campaign.paused | Campaign paused |
| budget.threshold | Budget threshold reached |
| performance.alert | Performance anomaly detected |
| content.generated | Content generation completed |
Webhook Payload
Each webhook includes:
- id: Event ID
- type: Event type
- created_at: Timestamp
- data: Event-specific data
Verifying Webhooks
Verify signatures using HMAC-SHA256 with your webhook secret.
Retry Policy
Failed webhooks are retried:
- 1st retry: 1 minute
- 2nd retry: 5 minutes
- 3rd retry: 30 minutes
- 4th retry: 2 hours
- 5th retry: 24 hours
After 5 failures, the endpoint is disabled.