AdvancedWebhooks
Advanced

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 URLs must use HTTPS for security.

Webhook Events

We send webhooks for various prediction-related events.

Fired when new predictions are generated for upcoming matches.

{
  "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.

You can set up multiple webhook URLs for different purposes.

Troubleshooting

Common webhook issues and solutions.

IssueSolution
Webhooks not arrivingCheck your endpoint is accessible and HTTPS
Invalid signatureVerify you're using the correct webhook secret
Duplicate eventsImplement idempotency using event IDs

Best Practices

Ensure reliable webhook processing.

Implement proper error handling and logging for webhook events.
Was this page helpful?
Built with Documentation.AI

Last updated 1 week ago