Skip to content

Alert Webhooks ​

As well as email, an alert can be sent to your own endpoint as a webhook. Each time the alert triggers, DMARC Manager sends a JSON POST request to the webhook you selected.

Adding a webhook to an alert ​

In the Channels step of the Create Alert or Edit Alert page, turn on Webhook and choose a Destination. If you don't have a webhook yet, select Create webhook and fill in:

FieldDescription
NameA label for the webhook, shown when choosing a destination.
Endpoint URLMust be a public HTTPS URL. It's stored encrypted and only the host is shown after saving.
Signing secretOptional, at least 16 characters. Each request is signed with this secret so you can verify it's genuine.

Request format ​

Every webhook request is an HTTP POST with a JSON body and these headers:

HeaderDescription
Content-TypeAlways application/json.
Webhook-IdA unique ID for the delivery. Use it to ignore duplicate deliveries.
SignatureOnly sent when the webhook has a signing secret. See Verifying the signature.

Every request body has the same envelope. Only the contents of data change between alerts:

json
{
  "event": "domain-score-change",
  "alert_uuid": "0195f3a2-7c1e-7d40-9b6a-2f8e4c1d5a90",
  "sent_at": "2026-11-26T09:30:00+00:00",
  "data": { }
}
FieldTypeDescription
eventstringThe alert type that triggered. See Payloads by event.
alert_uuidstringThe UUID of the alert that sent the request.
sent_atstringWhen the request was created, in ISO 8601 format.
dataobjectThe event-specific payload.

Verifying the signature ​

If the webhook has a signing secret, the Signature header contains a hex-encoded HMAC-SHA256 of the raw request body, using the secret as the key. Compute the same value over the body exactly as received (before parsing the JSON) and compare it to the header using a constant-time comparison.

js
const crypto = require('crypto');

const expected = crypto.createHmac('sha256', secret).update(rawBody).digest('hex');
const valid = crypto.timingSafeEqual(Buffer.from(expected), Buffer.from(signatureHeader));

Delivery and retries ​

  • Your endpoint must respond with a 2xx status within 3 seconds.
  • Redirects are not followed.
  • A failed delivery is attempted up to 3 times in total, waiting 10 seconds before the second attempt and 100 seconds before the third.
  • The same delivery keeps its Webhook-Id across retries.

Common objects ​

Several payloads share the following objects.

Domain

FieldTypeDescription
uuidstringThe domain's UUID.
domain_namestringThe domain name, for example acme.com.

Account

FieldTypeDescription
uuidstringThe account's UUID.
namestringThe account name.

Sender

FieldTypeDescription
uuidstringThe sender's UUID.
organizationstringThe organization that operates the sender, for example Google.
servicestringThe sending service, for example Google Workspace.

Payloads by event ​

CategoryActivityevent
StatusDMARC Compliance Score Changeddomain-score-change
StatusVerification Status Changeddns-delegation-verified
StatusSetup Re-Verification Faileddns-delegation-unverified
StatusReceived First Reportdomain-received-first-report
ConfigurationChanges to Settingsdomain-settings-change
Mail SendersCompliance Droppeddomain-compliance-drop
Mail SendersApproved Sender Foundtypically-authorized-sender-found
ReportsExposure Reportcustomer-exposure-report
Actions RequiredNew Action Createdtask-created
Actions RequiredAction Required Remindercustomer-task-reminder

Note: Other activities are sent by email only. If you turn on a webhook for them, no webhook request is sent.

domain-score-change ​

Sent when a domain's DMARC Compliance Score changes.

json
{
  "domain": { "uuid": "0195f3a2-6b10-7a2c-8e41-3c9d7f2a1b05", "domain_name": "acme.com" },
  "previous_score": 64,
  "current_score": 82
}
FieldTypeDescription
domainDomainThe domain whose score changed.
previous_scoreintegerThe score before the change.
current_scoreinteger or nullThe new score. null if the domain no longer has a score.

dns-delegation-verified and dns-delegation-unverified ​

Sent when DNS delegation verification passes (dns-delegation-verified) or when re-verification fails (dns-delegation-unverified). Both events use the same payload.

json
{
  "domain": { "uuid": "0195f3a2-6b10-7a2c-8e41-3c9d7f2a1b05", "domain_name": "acme.com" },
  "verification_uuid": "0195f3a2-6c44-7f19-a2d3-8b5e1f0c7d62",
  "verification_type": "dmarc",
  "status": "completed"
}
FieldTypeDescription
domainDomainThe domain that was verified.
verification_uuidstringThe UUID of the verification.
verification_typestringThe record that was verified: dmarc, spf, dkim, bimi, tlsrpt, mta-sts or mta-sts-policy.
statusstringThe verification status: pending, in-progress or completed.

domain-received-first-report ​

Sent when a domain receives its first DMARC report.

json
{
  "domain": { "uuid": "0195f3a2-6b10-7a2c-8e41-3c9d7f2a1b05", "domain_name": "acme.com" },
  "first_report_date": "2026-11-25"
}
FieldTypeDescription
domainDomainThe domain that received the report.
first_report_datestring or nullThe date of the first report, in YYYY-MM-DD format.

domain-settings-change ​

Sent when settings on a domain are changed. A single request can contain several changes.

json
{
  "domain": { "uuid": "0195f3a2-6b10-7a2c-8e41-3c9d7f2a1b05", "domain_name": "acme.com" },
  "changes": [
    {
      "setting": "dmarc_settings",
      "event": "updated",
      "changed_at": "2026-11-26T09:12:44+00:00",
      "old": { "policy": "none" },
      "new": { "policy": "quarantine" }
    }
  ]
}
FieldTypeDescription
domainDomainThe domain whose settings changed.
changesarrayOne entry per change, described below.
changes[].settingstring or nullThe area that changed: domain, dmarc_settings, spf_settings, spf_directives, dkim_settings, dkim_public_keys, bimi_settings, mta_settings, tls_settings, domain_sender or dns_delegation_verification.
changes[].eventstringcreated, updated or deleted.
changes[].changed_atstring or nullWhen the change was made, in ISO 8601 format.
changes[].oldobjectThe changed fields and their previous values. Empty for created.
changes[].newobjectThe changed fields and their new values. Empty for deleted.

The fields inside old and new depend on the setting that changed.

domain-compliance-drop and typically-authorized-sender-found ​

Sent when a sender's compliance drops below the alert's Compliance Threshold (domain-compliance-drop), or when a new, commonly approved sender is detected (typically-authorized-sender-found). Both events use the same payload.

json
{
  "domain": { "uuid": "0195f3a2-6b10-7a2c-8e41-3c9d7f2a1b05", "domain_name": "acme.com" },
  "sender": {
    "uuid": "0195f3a2-6d88-7b31-9c05-4e2a8f6b1d17",
    "organization": "Google",
    "service": "Google Workspace"
  },
  "total_incidents": 1200,
  "total_complete_failures": 300
}
FieldTypeDescription
domainDomainThe domain the sender sends on behalf of.
senderSenderThe sender.
total_incidentsintegerThe total number of messages seen from the sender.
total_complete_failuresintegerThe number of those messages that failed authentication completely.

Compliance is (total_incidents - total_complete_failures) / total_incidents. In the example above, compliance is 75%.

customer-exposure-report ​

Sent on the alert's schedule with a link to the Exposure Report for each domain that is receiving reports.

json
{
  "customer": { "uuid": "0195f3a2-5a01-7c3e-b2d4-6f1a9e8c3b40", "name": "Acme Corp" },
  "reports": [
    { "domain_name": "acme.com", "url": "https://app.example.com/exposure-report/..." }
  ]
}
FieldTypeDescription
customerAccountThe account the reports are for.
reportsarrayOne entry per domain.
reports[].domain_namestringThe domain name.
reports[].urlstringA link to the domain's Exposure Report. The link is signed and expires, so don't store it for later use.

task-created ​

Sent when a new action is required on a domain.

json
{
  "uuid": "0195f3a2-7e52-7a90-8d14-1b6c3f9e2a77",
  "type": "domain_verify_dmarc",
  "priority": "high",
  "status": "pending",
  "taskable_uuid": "0195f3a2-6b10-7a2c-8e41-3c9d7f2a1b05"
}
FieldTypeDescription
uuidstringThe action's UUID.
typestringThe kind of action, for example domain_verify_dmarc or domain_spf_fix_directives.
prioritystringlow, medium, high or critical.
statusstringpending, in_progress, completed or cancelled.
taskable_uuidstringThe UUID of the domain the action belongs to.

customer-task-reminder ​

Sent on the alert's schedule with the number of open actions on each domain. It is only sent when at least one domain has an open action.

json
{
  "customer": { "uuid": "0195f3a2-5a01-7c3e-b2d4-6f1a9e8c3b40", "name": "Acme Corp" },
  "frequency": "weekly",
  "domains": [
    {
      "domain_name": "acme.com",
      "counts": { "CRITICAL": 1, "HIGH": 2, "MEDIUM": 0, "LOW": 3 }
    }
  ]
}
FieldTypeDescription
customerAccountThe account the reminder is for.
frequencystringThe alert's frequency: immediate, hourly, daily, weekly, fortnightly, monthly, two_monthly, quarterly, six_monthly or yearly.
domainsarrayOne entry per domain with open actions, sorted by domain name.
domains[].domain_namestringThe domain name.
domains[].countsobjectThe number of open actions by priority. Always contains CRITICAL, HIGH, MEDIUM and LOW, including zero counts.

Open actions are those with a status of pending or in_progress.