Skip to content
OmgSecure
How it worksCoverageQuestionsPricingSign inGet started
How it worksCoverageQuestionsPricingSign inGet started

Webhooks

Signed to the Standard Webhooks specification.

A webhook channel sends the same alerts we email you to a web address you choose, as JSON. Add one under Notifications in the app. Copy its signing secret when it is shown, because it is shown only once, and use it to verify every post. The same events are described, machine-readable, in the webhooks section of the API's OpenAPI description.

What a post looks like

Every post is an HTTPS POST of a JSON body with three fields: type, timestamp (when the event was decided, UTC) and data. Three headers come with it:

webhook-id: msg_2f9c61d0
webhook-timestamp: 1793966400
webhook-signature: v1,K5oZfzN95Z9UVu1EsfQmfVNQhnkZ2pj9o9NDN/H/pI4=
  • webhook-id is the post's idempotency key. A retry of the same post carries the same id, so drop a post whose id you have already handled. A later post with a different set of alerts has a different id, even for an alert you have seen.
  • webhook-timestamp is when this try was signed, in Unix seconds. Refuse one that is far from your clock; five minutes is a common tolerance.
  • webhook-signature holds one or more space-separated signatures, each v1, and the base64 of an HMAC-SHA256 over id.timestamp.body. Accept the post when any one matches.

A body past 20,000 bytes is cut by whole items, never mid-item, and says so with data.truncated: true. A body never holds an email address. Receivers should ignore fields they do not know: we add fields without notice and never remove one without announcing it.

Events

alert.notice

An alert opened, reopened, escalated or cleared. data carries:

  • organizationId, string: The Organization’s id.
  • domain, object
  • domain.id, string
  • domain.name, string
  • notices, list of object
  • notices[].kind, one of opened, reopened, escalated, resolved, reminder: What happened to the alert.
  • notices[].alertId, string: The alert’s id.
  • notices[].severity, one of info, warning, high, critical: The alert’s severity now.
  • notices[].previousSeverity, one of info, warning, high, critical, or null: The severity before an escalation; null otherwise.
  • notices[].message, string: What the alert says.
  • notices[].category, string, or null: The alert’s category, when it has one.
  • notices[].ruleKey, string, or null: The rule that raised it.
  • notices[].change, object, or null: A DNS record’s value before and after, and what it does to mail.
  • notices[].change.before, string, or null
  • notices[].change.after, string, or null
  • notices[].change.impact, string, or null
  • notices[].detectedAt, string: When the alert last fired.
  • notices[].url, string: The alert in the app.
  • truncated, always true: Present and true when the list was cut to fit 20,000 bytes.
{
  "type": "alert.notice",
  "timestamp": "2026-11-06T12:00:00.000Z",
  "data": {
    "organizationId": "org_1",
    "domain": {
      "id": "dom_1",
      "name": "example.com"
    },
    "notices": [
      {
        "kind": "opened",
        "alertId": "alert_8f2c",
        "severity": "critical",
        "previousSeverity": null,
        "message": "SPF record removed",
        "category": "authentication",
        "ruleKey": "spf-missing",
        "change": {
          "before": "v=spf1 include:_spf.example.net -all",
          "after": null,
          "impact": null
        },
        "detectedAt": "2026-11-06T12:00:00.000Z",
        "url": "https://app.omgsecure.com/alerts?view=all&alert=alert_8f2c"
      }
    ]
  }
}

alert.rollup

A storm of notices on many Domains, grouped by what the alert says. data carries:

  • organizationId, string: The Organization’s id.
  • notices, integer: Every notice the rollup carries, listed or counted.
  • unlisted, integer: Notices counted but not listed.
  • domainCount, integer: Distinct Domains across all of them.
  • groups, list of object
  • groups[].message, string: What the alert says; the group’s key.
  • groups[].resolved, boolean: True for a clearing, false for a finding.
  • groups[].severity, one of info, warning, high, critical: The worst severity among the group’s notices.
  • groups[].notices, integer: Notices in the group.
  • groups[].domainCount, integer: Distinct Domains in the group.
  • groups[].domains, list of object: Domains named, worst first; the rest are only counted.
  • groups[].domains[].id, string
  • groups[].domains[].name, string
  • groups[].url, string: Where the group opens in the app.
  • truncated, always true: Present and true when the list was cut to fit 20,000 bytes.
{
  "type": "alert.rollup",
  "timestamp": "2026-11-06T12:00:00.000Z",
  "data": {
    "organizationId": "org_1",
    "notices": 2,
    "unlisted": 0,
    "domainCount": 2,
    "groups": [
      {
        "message": "SPF record removed",
        "resolved": false,
        "severity": "critical",
        "notices": 2,
        "domainCount": 2,
        "domains": [
          {
            "id": "dom_1",
            "name": "example.com"
          },
          {
            "id": "dom_2",
            "name": "example.org"
          }
        ],
        "url": "https://app.omgsecure.com/alerts?view=all&severity=critical"
      }
    ]
  }
}

alert.digest

The daily or weekly summary. data carries:

  • organizationId, string: The Organization’s id.
  • cadence, one of daily, weekly
  • domains, list of object
  • domains[].id, string: The Domain’s id.
  • domains[].name, string: The Domain’s name.
  • domains[].openBySeverity, object: Alerts still open, counted by severity.
  • domains[].opened, list of object: Alerts first detected in the period.
  • domains[].opened[].alertId, string
  • domains[].opened[].message, string
  • domains[].opened[].severity, one of info, warning, high, critical
  • domains[].opened[].at, string: When it happened.
  • domains[].atSetup, list of object: Alerts the Domain’s first scan already showed.
  • domains[].atSetup[].alertId, string
  • domains[].atSetup[].message, string
  • domains[].atSetup[].severity, one of info, warning, high, critical
  • domains[].atSetup[].at, string: When it happened.
  • domains[].resolved, list of object: Alerts that cleared in the period.
  • domains[].resolved[].alertId, string
  • domains[].resolved[].message, string
  • domains[].resolved[].severity, one of info, warning, high, critical
  • domains[].resolved[].at, string: When it happened.
  • truncated, always true: Present and true when the list was cut to fit 20,000 bytes.
{
  "type": "alert.digest",
  "timestamp": "2026-11-06T12:00:00.000Z",
  "data": {
    "organizationId": "org_1",
    "cadence": "daily",
    "domains": [
      {
        "id": "dom_1",
        "name": "example.com",
        "openBySeverity": {
          "critical": 1,
          "high": 0,
          "warning": 2,
          "info": 0
        },
        "opened": [
          {
            "alertId": "alert_8f2c",
            "message": "SPF record removed",
            "severity": "critical",
            "at": "2026-11-06T12:00:00.000Z"
          }
        ],
        "atSetup": [],
        "resolved": []
      }
    ]
  }
}

channel.test

A test post from the channel’s settings. data carries:

  • organizationId, string: The Organization’s id.
  • channel, string: The channel’s name.
{
  "type": "channel.test",
  "timestamp": "2026-11-06T12:00:00.000Z",
  "data": {
    "organizationId": "org_1",
    "channel": "Security alerts"
  }
}

Verify a post

Use the official Standard Webhooks library for your language, and give it the body exactly as it arrived: a body parsed and written back out no longer matches its signature. The libraries check the timestamp for you. The secret starts whsec_; the JavaScript library strips that prefix itself, so for another language check whether yours does, and remove the prefix before you pass it if it does not.

JavaScript

Package: standardwebhooks

import { Webhook } from "standardwebhooks"

const wh = new Webhook(process.env.OMGSECURE_WEBHOOK_SECRET)
// rawBody is the request body exactly as received, before any JSON parsing.
wh.verify(rawBody, request.headers) // throws if no signature matches

Python

Package: standardwebhooks

from standardwebhooks.webhooks import Webhook

wh = Webhook(os.environ["OMGSECURE_WEBHOOK_SECRET"])
# raw_body is the request body exactly as received, before any JSON parsing.
wh.verify(raw_body, request.headers)  # raises if no signature matches

Go

Package: github.com/standard-webhooks/standard-webhooks/libraries/go

import standardwebhooks "github.com/standard-webhooks/standard-webhooks/libraries/go"

wh, err := standardwebhooks.NewWebhook(os.Getenv("OMGSECURE_WEBHOOK_SECRET"))
// rawBody is the request body exactly as received, before any JSON parsing.
err = wh.Verify(rawBody, r.Header) // an error if no signature matches

Roll the signing secret

Choose "Issue a new signing secret" on the channel. The new secret is shown once. The old one keeps signing for 24 hours, so for that time every post carries two signatures and a receiver verifying with either secret accepts it. Switch your receiver to the new secret in that window; afterwards only the new signature is sent. A second roll inside the window replaces the old secret again, so there are never more than two. The app shows when the old secret stops working.

Delivery

  • Answer any 2xx within five seconds to accept a post.
  • A 429 or a 5xx is tried once more in the same call (we honour Retry-After for up to two seconds). Those, a 408 and a failed connection are tried again the next time we look at the domain and still owe the post, with the same webhook-id. 5 failures in a row turn the channel off.
  • Any other 4xx, and any redirect, turns the channel off at once: we never follow a redirect, so give us the final address. Owners and admins get an email when a channel is turned off.
  • Hosts must resolve to public IPv4 addresses on port 443. Saving a channel posts a test event, channel.test.

Point a tool at it

Any tool that gives you an HTTPS URL can receive a webhook channel. What differs is whether the tool can check the signature. These notes come from each vendor's own documentation, and say so where a tool cannot.

  • Zapier. Use the "Webhooks by Zapier" Catch Raw Hook trigger, which keeps the headers and the raw body. It has no signature check of its own, so add a "Code by Zapier" step that verifies webhook-signature and stops the Zap on a mismatch, or accept posts unverified, knowing anyone who learns the URL can send to it.
  • Jira. An Automation for Jira rule can start from an "Incoming webhook" trigger, which gives you a URL and a secret to paste into the sender. Its documentation does not describe checking a Standard Webhooks signature, so put a small verifying relay in front, or treat the URL as the only protection.
  • Microsoft Sentinel. Create a Logic App with the "When a HTTP request is received" trigger and use its URL. Azure signs that URL with a shared access signature that it checks before the workflow runs, but it does not check our webhook-signature. Read the headers with triggerOutputs() if you want to verify in a step, and send the alert on to Sentinel from the Logic App.
  • Linear. Linear's webhooks send data out; its documentation describes no inbound URL that creates an issue. Receive our post in a small relay that verifies it and creates the issue through Linear's API.
  • ServiceNow. The Table API creates a record from a POST of JSON, but it expects authenticated callers and our body is not its record shape. Receive our post in a relay that verifies it and creates the incident.

We do not build a native app per tool: one signed webhook keeps the contract the same everywhere.

OmgSecure

Keeps watch over every domain you send email from.

Free checkerPricingDocsWhat’s newStatusSign inGet startedPrivacyTermsSecurityhello@omgsecure.com

© 2026 OmgSecure