What Are Webhooks?
Webhooks are user-defined HTTP callbacks that are triggered by specific events. When one of those events is triggered, Embedly will send an HTTP POST request to the webhook URL you specify. This request contains details about the event, allowing your application to handle the event data in real-time.Webhooks enable your application to respond to events as they happen, ensuring
that your system stays up-to-date without the need for constant polling.
Common Use Cases for Webhooks
Payment Notifications
Get notified when a payment is successful or fails, and update your records
accordingly.
Wallet Updates
Receive updates when a wallet is updated, or deleted.
Transaction Events
Monitor transactions in real-time, enabling immediate action or analysis.
Collection Events
Get notified when a wallet is credited, enabling you to provide service
seamlessly.
Setting Up Webhooks on Embedly Dashboard
To start using webhooks, you need to configure them through the Embedly Dashboard. Follow the steps below to set up your webhooks:
Here’s the guide rewritten using the Steps component to clearly outline the process for handling webhooks in your application:
Handling Webhooks in Your Application
When your application receives a webhook, it’s important to handle it efficiently and securely. Follow these steps to manage incoming webhooks:Step 2: Verify the Webhook
If you have set a secret key, you should verify the signature included in the webhook request headers. This verification ensures that the request is authentic and actually from Embedly.