Kütüphane / Yapı Taşları ve Yardımcı Araçlar
Yapı Taşları ve Yardımcı Araçlar
Gelen webhook olaylarını doğrula ve tekrarlanan olayları bir tekilleştirme anahtarıyla at
Gelen webhook çağrılarıyla tetiklenir, her olay zarfını kontrol eder, hatalı biçimdeki olaylar için 422 döndürür ve yalnızca ilk teslimleri bir tekrar filtresinden geçirir.
Ne yapar
## Webhook Replay Shield - Safe Single-Output Replay Filter ### How it works This workflow receives webhook events, validates that the event envelope is well formed, and branches based on validity. Valid events pass through a replay shield that remembers previously seen event keys so only first deliveries continue to the success response. Invalid events are formatted into an error payload and returned with a 422 response. ### Setup steps - Configure the webhook trigger URL and ensure the upstream service sends events to it. - Review the validation code to match the expected event envelope, required fields, timestamps, and any signature or secret checks. - Configure the duplicate-removal node to use the correct event key or idempotency key, and set an appropriate retention window for replay protection. - Verify the Respond to Webhook nodes are using the intended HTTP status codes and response bodies. ### Customization Adjust the idempotency key, validation rules, retention period, and response payloads/status codes to match the webhook provider’s retry and replay semantics.
Adımlar
- When Event Received
- Validate Event Contents
- If Event is Valid
- Deduplicate by Event Keys
- Generate First Response Code
- Handle Invalid Event Error
- Send 202 Status for First Seen
- Send 422 Status for Invalid Event
Benzer otomasyonlar
Yapı Taşları ve Yardımcı AraçlarWebhook ile IP Coğrafi Konum Ayrıntılarını Sorgulama3 adımYapı Taşları ve Yardımcı AraçlarWebhook Üzerinden QR Kodları Oluşturma3 adımYapı Taşları ve Yardımcı AraçlarWebhook şablonu: getir, dönüştür, yanıtla ve hatada uyar7 adımYapı Taşları ve Yardımcı AraçlarVeri depolayan webhook GET ve POST işleyicisi6 adım