Add Breach Alert Subscriptions for Domains

Subscribe to Exposure alerts for a domain

Allows you to set up a new Exposure alert subscription for one or more email domains. Note that you must be pre-approved and verified to subscribe for the domain(s) you are registering. Please Contact Us for assistance.

POSThttps://api.enzoic.com/v1/breach-monitoring-for-domains
Authorization
Body
domainsarray of string
webhookIDstring

The ID of the webhook to send alerts to when new Exposures are found for this domain. If not specified, the default webhook for your account will be used.

Example: "66766957431c9acc8cea2d6d"
Response

The call was successful. Your webhook will now be called whenever one of the submitted email addresses is involved in a new Exposure.

Body
addedinteger

The number of new alert subscriptions created.

Example: 1
alreadyExistedinteger

The number of alert subscriptions which already existed.

Example: 0
Request
const response = await fetch('https://api.enzoic.com/v1/breach-monitoring-for-domains', {
    method: 'POST',
    headers: {
      "Authorization": "basic <token>",
      "Content-Type": "application/json"
    },
    body: JSON.stringify({}),
});
const data = await response.json();
Response
{
  "added": 1,
  "alreadyExisted": 0
}

Last updated