🪝Web Hooks
Introduction
Webhooks enable real-time communication between applications. AllCore can automatically send messages or data updates to other systems whenever specific events occur, avoiding the need for polling. This ensures timely and efficient data transfer.
The type of webhook you need depends on how you use AllCore in your business and which AllCore's product you’re integrating.
Web Hook Retries
If your webhook endpoint fails to return a 200 response or times out after 10 seconds, AllCore retries up to 10 times. Each retry is separated by a few minutes, with the delay between attempts increasing exponentially.
Web Hook Verification
When a webhook secret is configured, every webhook request includes an X-Payload-Digest header. This is an HMAC-SHA1 signature of the request body, generated using the user-provided secret. Visit the page below for example:
Best Practices
Build robust webhook handling by accommodating duplicates and out-of-order deliveries. Use idempotency to prevent repeated requests from causing unintended effects. If state changes depend on webhooks, avoid relying on a specific delivery order.
If downtime exceeds AllCore retry period, some webhooks may be lost. In such cases, use self-healing mechanisms by querying AllCore's endpoints for current item states. All data sent in webhooks is also accessible through our other APIs.
For optimal performance, keep your webhook receiver lightweight. A common approach is to write incoming webhook data to a queue or persistent storage. This ensures:
Quick acknowledgements within the 10-second window, preventing delivery failures.
Resilience during high volume or rate limits, especially if your receiver executes intensive tasks like sending emails.
Last updated