What Are Webhooks?
Webhooks let you receive real-time HTTP notifications when events occur in your FoxReach account. Instead of polling the API for changes, you register a URL and we’ll send a POST request to it whenever something happens.How It Works
Register a webhook
Use the API to create a webhook with your endpoint URL and the events you want to subscribe to.
Receive events
When a subscribed event occurs, we send a POST request to your URL with the event payload.
Creating a Webhook
Webhook Payload
When an event occurs, we send a POST request with a JSON body:Retry Policy
If your endpoint returns a non-2xx status code, we’ll retry the delivery with exponential backoff. After consecutive failures, the webhook will be marked as unhealthy.| Attempt | Delay |
|---|---|
| 1st retry | 1 minute |
| 2nd retry | 5 minutes |
| 3rd retry | 30 minutes |
consecutiveFailures counter increments. You can monitor this via the API.
Best Practices
- Respond quickly — return a
200status code within 5 seconds. Process the event asynchronously if needed. - Handle duplicates — webhook deliveries can occasionally be duplicated. Use idempotent processing.
- Verify signatures — always verify the HMAC-SHA256 signature to ensure the webhook came from FoxReach. See Signature Verification.
- Use HTTPS — always use HTTPS endpoints for your webhook URLs.