Overview
Webhooks enable you to receive real-time notifications when specific events occur in Forerunner. Instead of polling the API, your application can be notified immediately when files are processed, records are updated, or other important events happen.How Webhooks Work
Configure your webhook endpoint
Set up an HTTPS endpoint on your server that can receive POST requests from Forerunner. We recommend writing one endpoint capable of handling all webhook payloads.
Register with Forerunner
Contact your CS representative with your HTTPS endpoint URL and any required
authentication headers to enable webhook delivery.
Receive webhooks
When a relevant event occurs, Forerunner sends HTTP POST requests to your
endpoint with the results.
Request Headers
Every webhook request includes the following HTTP headers:| Header | Value |
|---|---|
Content-Type | application/json |
Webhook payloads
Forerunner sends webhooks for specific events in your account. Each event type has its own payload structure.Document finished processing
Sent when a document finishes processing, including OCR, validation, and data extraction. This is the primary webhook for tracking file processing status.Retry Policy
Forerunner implements automatic retries for failed webhook deliveries. If your server returns a non-2XX HTTP status code, Forerunner will retry the webhook request up to 2 times using an exponential backoff algorithm to avoid overwhelming your server.