Webhooks
Webhooks are a way for your application to receive real-time notifications from bundle.social when certain events occur. When the event occurs, bundle.social sends an HTTP POST request to a URL you specify.
At this stage we assume you have already created an API key. If you haven’t, please refer to the Introduction page.
To receive webhook events, you need to provide us with a URL that we can send the events to.
You can use a service like ngrok to create a secure tunnel to your local development environment.
To create a new webhook go to the Webhooks page.
After creating a webhook, you will receive a secret key that you can use to verify the webhook events.
After running ngrok wait a minute for DNS to resolve correctly. Otherwise, you may get an error.
Handling webhook events
If you are using the bundle.social SDK, you can use the webhook
module to handle webhook events.
Check it out
Simple example using express
Was this page helpful?