Webhook

A Webhook is a mechanism that pushes monitor notifications by HTTP POST to a URL you choose. In Datadog it is provided as the Webhooks integration, letting you deliver alerts even to in-house tools that have no dedicated integration.

Overview

A Webhook is an outlet that POSTs a JSON payload to a URL you registered when a Datadog monitor changes to an alert state. You use it for destinations without a dedicated integration like Slack or PagerDuty, for example an internal ticket ledger or a homegrown notification bot. Setup has two steps: register a name and URL in the tile, and write @webhook-name in the monitor's notification message. The receiving side needs a reachable HTTP endpoint, authentication, and a design that does not break when the same notification arrives twice. It is a one-way push, not a path for the receiver to operate Datadog, which is the boundary most often confused.

An outlet that pushes notifications by HTTP to any URL

A Webhook is a mechanism that delivers an alert raised by a monitor to an arbitrary URL outside Datadog via HTTP POST. Datadog provides it as the Webhooks integration. Per the official description, it is a feature to "connect to your own services and notify them when a metric alert fires" (as of September 2026, Source: Webhooks). Its reason for existing is that even a destination with no ready-made integration can be a notification target as long as it has an endpoint that accepts HTTP. The examples the official documentation gives are sending SMS via Twilio and creating Jira issues, both of which are uses where "the alert drives another system" rather than "a person reads the alert."

Two-step setup - name and URL in the tile, destination in the monitor

Setup is split into two steps. Register a name and destination URL in the Webhooks integration tile, then write @webhook-<name> in the body of the monitor you want to notify (as of September 2026, Source: Webhooks).

  • The monitor transitions to an alert state and the @webhook-<name> in the notification message is resolved
  • A JSON payload is POSTed to the registered URL (the wait per request is 15 seconds)
  • Retries happen only when the receiver returns a 5XX or an error occurs inside Datadog; connection failures are retried up to 5 times
  • If the receiver returns a successful response, sending is complete, and the receiver's processing result is not returned to Datadog
Source: flow organized from the description in the Datadog official documentation Webhooks (as of September 2026)

The limited retry conditions affect your design. A notification for which the receiver returned a 4XX is not resent, so an authentication failure or a mistyped URL can only be noticed in the receiver's logs. How to write the notification message itself is left to the "writing notifications" section of the Monitors entry.

The content sent is assembled from template variables

You can send the default JSON payload as-is, or write your own shape in the Payload field to replace it. What fills in the content are template variables such as $ALERT_TITLE, and the same variables can be used in the URL and in custom headers (as of September 2026, Source: Webhooks).

Examples of template variables that matter for receiver-side processing
VariableValue it holdsUse on the receiving side
$ALERT_TRANSITIONThe type of transition, such as Triggered / Recovered / Warn / No DataBranching to close a ticket on a recovery notification
$ALERT_CYCLE_KEYAn ID that links the sequence from trigger to recovery as oneConsolidating notifications for the same incident into one
$IDThe ID of the eventDuplicate detection for resent notifications
$TAGSThe event's tags as a comma-separated stringRouting to the responsible team
$EVENT_TYPEA type corresponding to the monitor kind, such as log_alert / query_alert_monitorBranching on whether it came from logs or metrics
Source: excerpted from the Variables section of the Datadog official documentation Webhooks (as of September 2026)

Values such as credentials can be registered in the tile as your own custom variables, set to be hidden from display, and then inserted into the URL or headers. Beyond streaming the message text, the arrangement that pays off later is to include the ID and transition type that the receiver can use for branching.

What the receiver must provide: reachability, authentication, and idempotency

The receiving side needs three things. The first is an HTTP endpoint reachable from Datadog (HTTPS in real operations). If you want to restrict the source, allow the webhooks category of the IP address list Datadog publishes (as of September 2026, Source: Datadog IP Ranges). The second is authentication. The options are Basic authentication embedded in the URL, OAuth 2.0 where Datadog handles token acquisition through an Auth Method, and placing your own token in a custom header (Source: Webhooks). The third is idempotency, that is, a design where receiving the same notification twice does not change the result. Since retries happen, unless the receiver distinguishes duplicates by $ID or $ALERT_CYCLE_KEY, a single incident produces two tickets.

Do not use it for destinations that have a dedicated integration

For destinations with a dedicated integration, such as Slack or PagerDuty, the rule is to use the dedicated one. Webhooks suit in-house tools with no dedicated integration, internal operations ledgers, and situations where you want to broker an external API such as SMS sending. When one monitor sends to multiple destinations, the sending queues are separated per service, so a retry on one does not delay the other (as of September 2026, Source: Webhooks). As a caution, the official documentation states explicitly that on HIPAA-enabled accounts, security-related notifications are not sent to Webhooks. In environments with regulatory requirements, confirm this constraint before designing the notification path.

The premise that it is not a two-way integration

A Webhook is a one-way push from Datadog outward. The receiver's response is used only to judge whether sending succeeded, and its content is never written back to Datadog monitors or events. If you want to operate Datadog from the receiving side, for example to schedule a downtime, that is a separate path: calling the Datadog API with an application key. The other mix-up is thinking of a Webhook as an entry point for events. If you want to send something from outside into Datadog, that is the job of the Events API or Integrations; the Webhooks integration handles only the exit.

Share