Callbacks

Bnotify API can send you information when a specific user subscribes or unsubscribes from a channel.

All need to do is set a callback URL in your channel.

Below, you can see the request sent by Bnotify API to your callback URL.

Ensure you allow https://bnotify.io to access your endpoint (CORS, IP, etc.). Otherwise, the call will be refused.

Note that we also send an Authorization header with the request. We highly recommend verifying that header to check if the callback originated from Bnotify. You can obtain the channel auth header from the channel information. We also recommend API rate limiting for extra security.

Bnotify Callback

When a user subscribe a notification channel.

POST

https://your-callback-url

Check the next section to see how to display the subscription QR Code to your costumers.