Consuming Webhooks
Once Transyt receives and verifies a webhook from a provider, it delivers the event to your application. This section covers everything you need to integrate with Transyt on the consumer side.
Delivery Methods
Section titled “Delivery Methods”Push Delivery (Recommended)
Section titled “Push Delivery (Recommended)”Transyt POSTs events directly to your configured delivery_url. This is the simplest approach — your app just needs an HTTP endpoint.
- Push Delivery — How push delivery works
- Verifying Signatures — Verify
X-Gateway-Signatureheaders - Payload Format — The Transyt envelope format
Database Polling (Alternative)
Section titled “Database Polling (Alternative)”For more control, you can poll the integration_events table directly and claim events for processing. This approach is useful when you need custom retry logic or batch processing.
Integration Guides
Section titled “Integration Guides”Complete examples for popular frameworks:
Best Practices
Section titled “Best Practices”- Always verify signatures — Use the
X-Gateway-Signatureheader to ensure requests come from Transyt - Return 2xx quickly — Process webhooks asynchronously to avoid delivery timeouts (30 seconds)
- Implement idempotency — Use the
event_idto prevent processing the same event twice - Handle retries gracefully — Your endpoint may receive the same event multiple times if earlier attempts timed out