Webhooks
Webhooks are where BIN monitoring breach notifications get sent
To use the BIN Monitoring Service, it is necessary to setup a Webhook with Enzoic. You will need to specify a URL on your end that will be called with a POST whenever a notification is made. This can be done via API using the Webhooks API or by contacting Enzoic Support. You will also receive a Webhook Key and Webhook Secret which will be passed to your endpoint via basic HTTP authentication.
NOTE: Webhook notifications will be sent from IP address: 52.42.159.171. You may need to update your firewall rules accordingly.
Webhook POST Body
The content of the POST body that will be sent to your webhook for new Breach Monitoring notifications will be a JSON object with the members specified in the table below.
Additional JSON keys may be added to this payload as we make enhancements to the service, so you must implement JSON parsing for the webhook in a way that will not fail if additional data members are present.
monitoredBin
string
The BIN number being monitored
date
date
The date/time (in GMT) that the breach/exposure was found
exposureID
string
recoveredCreditCardNumber
string
The credit card number matching your BIN which was found.
rawMatchSource
string
A snippet of text from the breach source showing the content around where the matches were found. This can be used to assess what additional information may have been revealed (e.g. CVV, Exp Date, etc.)
An example POST body:
Webhook Authentication
For security reasons, you should authenticate calls to your Webhook endpoint. To facilitate this, you will be provided with a Webhook Key and a Webhook Secret when you setup your Webhook with Enzoic. These will be passed as a standard basic authentication HTTP with the Webhook Key as the username and the Webhook Secret as the password. As per the standard, the authentication header passed to your endpoint is constructed as follows:
Mutual TLS (mTLS) Authentication (Optional)
If you use an HTTPS endpoint for your webhook's URL, Enzoic will by default confirm that your server certificate is valid prior to posting data by ensuring it is issued by a trusted Certificate Authority and the subject of the certificate matches the webhook domain. This is to help ensure we are communicating with your server and not an unauthorized 3rd party.
Mutual TLS (mTLS) is an optional authentication you may leverage in your webhook to verify that the call actually originated with Enzoic. To take advantage of mTLS, you configure your server to verify Enzoic's client certificate. Enzoic always attempts to send this certificate, so there is no need for any additional configuration on the Enzoic side to enable this functionality.
You can read more about mTLS for webhook security at https://webhooks.fyi/security/end-to-end-encryption.
Setting Up mTLS
To setup mTLS, you will need to do the following:
Download the Enzoic root certificate from https://cdn.enzoic.com/certs/Enzoic-RootCA-2025.crt
Configure your web server to require client certificate verification using the certificate from step 1 as the trusted root CA and setting the verification depth to 1.
Verify the client certificate is actually from Enzoic by verifying the subject domain name is
webhooks.enzoic.com
Although the client certificate configuration will be specific to your web server, example configurations for NGINX and Apache are below.
NGINX Example Configuration
Apache Example Configuration
Payload Encryption (Optional)
Enzoic can optionally encrypt the webhook body with a pre-shared key, using AES encryption. In this case the body of the call will contain a Base64 encoded encrypted version of the JSON payload. It will be necessary to decrypt the received Base64 payload using the pre-shared key. This provides another safeguard to protect the sensitive data contained in the webhook call against unauthorized interception.
Contact Enzoic support to discuss enabling this feature for your webhooks.
Testing Your Implementation
Once you have your webhook up and publicly accessible, you can verify all is working using the Webhook Test REST Call using the type=binAlert query string parameter. This will cause a BIN Monitoring Notification POST containing test data to be made to your URL.
Last updated
Was this helpful?