Webhooks
Set up webhooks for real-time prediction updates
Webhooks allow you to receive real-time notifications when new predictions are available or existing ones are updated. This is perfect for automated betting systems.
Setting Up Webhooks
Configure webhook endpoints to receive prediction updates instantly.
Create Endpoint
Set up an HTTPS endpoint on your server to receive webhook payloads.
Register URL
Add your webhook URL in the PredictorBets dashboard.
Test Connection
Send a test webhook to verify your endpoint is working.
Webhook Events
We send webhooks for various prediction-related events.
Fired when new predictions are generated for upcoming matches.
Sent when odds change significantly for existing predictions.
Notifies when predicted matches have concluded with results.
{
"event": "prediction.created",
"data": {
"id": "pred_12345",
"match": "Chiefs vs Buccaneers",
"prediction": "Chiefs -3",
"confidence": 0.82,
"sport": "football",
"timestamp": "2024-01-15T12:00:00Z"
}
}
Managing Webhooks
Control your webhook configurations through the dashboard.
Troubleshooting
Common webhook issues and solutions.
| Issue | Solution |
|---|---|
| Webhooks not arriving | Check your endpoint is accessible and HTTPS |
| Invalid signature | Verify you're using the correct webhook secret |
| Duplicate events | Implement idempotency using event IDs |
Best Practices
Ensure reliable webhook processing.
Last updated 1 week ago