Learn the basics of deploying, ingesting, and verifying webhooks from Straddle.
The Straddle APIs utilize webhooks to notify you in real-time when certain events occur within your platform or account. At their core, webhooks are simply HTTP POST requests to a pre-configured endpoint that you control.
Event Occurs: A relevant event happens within the Straddle platform (e.g., a customer makes a payment).
Webhook Sent: Straddle sends a POST request to your designated endpoint with a JSON payload describing the event.
Your Response: To indicate successful processing, return a 2xx (200–299) HTTP status code within 15 seconds. This assures Straddle you’ve received the event and prevents unnecessary retries.
Make sure to disable CSRF protection on your webhook endpoint if your framework has it enabled by default.
Set up endpoints and configure event types right from the dashboard.
Test with Dummy Data
Use Svix Play or the built-in debugger to simulate events before going live.
Secure Your Endpoint
Implement signature and timestamp checks to ensure payload integrity.
Go Live
Once tested, deploy your endpoint and start receiving real-time events.
While the dashboard is the quickest way to get started, you can also use the Straddle API to build custom webhook management workflows tailored to your environment.With these fundamentals in place, you’re ready to confidently integrate and handle webhooks from Straddle.