# Webhooks (/operate/webhooks)

<p>
  {webhook}
</p>

Refer to [Webhooks](/concepts/audit/webhooks) concept for how signed delivery works. Refer to [Event contracts](/reference/events/contracts#webhooks) reference for the wire contract.

## Overview [#overview]

A **subscription** matches events by type and filter. The [Event catalog](/reference/events/catalog) marks which types are delivered. A **destination** receives them as signed HTTP POSTs. Create both in one call with `subscriptions create`, or attach a second subscription to an existing destination. Providers and custom URLs use the same model. Discover provider fields with `dome webhooks providers list`. Operating limits (body cap, rate, retention) are on [Webhooks](/concepts/audit/webhooks#operating-limits).

Webhook `event_type` values use the same names as Audit schema-v4 operations (`agent.suspend`, `tool.call`, `guard.filter.evaluate`). There is no `access.denied` type: subscribe to the operation and filter on `result=denied`. Retired names such as `mcp.tool_call.completed` and `llm.output.filtered` do not match.

Create and manage webhooks with the [CLI reference](/cli/operate/webhooks), [MCP reference](/reference/mcp/webhooks), or [API reference](/api). All three use the same destination, subscription, provider, and delivery contract.

The typical workflow is:

1. [Create a subscription](#create-a-subscription) and optional [filters](#filters).
2. [Test](#test-a-subscription) the destination, then [verify signatures](#verify-a-signature) on custom HTTPS endpoints.
3. [Inspect](#inspect-deliveries) attempt history and [replay](#replay-deliveries) failures when needed.
4. [Rotate the signing secret](#rotate-the-signing-secret) when credentials change.

## Requirements [#requirements]

Before you begin, authenticate to Dome and select a workspace.

### Permissions [#permissions]

Webhook operations require platform permissions. People and scoped API keys call the webhooks API. Agent credentials cannot.

Most roles can inspect subscriptions and deliveries. Creating destinations, rotating secrets, and changing subscriptions need `eventing.manage`. Replay re-sends requests to your systems and can trigger downstream automation, so it uses a separate `eventing.replay` permission.

| Default roles       | Permission        | Grants                                                                |
| ------------------- | ----------------- | --------------------------------------------------------------------- |
| All workspace roles | `eventing.view`   | List and inspect subscriptions, deliveries, providers                 |
| `admin`, `operator` | `eventing.manage` | Create, update, disable, delete, rotate secrets, test, cancel retries |
| `admin`, `operator` | `eventing.replay` | Single and bulk replay                                                |

## Destinations [#destinations]

Choose a Custom webhook for a generic HTTPS receiver or a built-in provider preset for a service-specific request format. A provider can transform the canonical event into the format its receiving API expects.

### Custom webhook [#custom-webhook]

Choose **Custom webhook** for any HTTPS receiver that is not in the provider catalog. Give it a name and public HTTPS endpoint. Private, loopback, and metadata addresses are rejected. You can add up to five literal or secret headers and choose an object body or a single-element array body. Secret header values are write-only.

Custom endpoints receive the canonical [webhook event contract](/reference/events/contracts#webhooks). Save the `whsec_…` signing secret when Dome shows it, then [verify the signature](#verify-a-signature) at the receiver.

### Built-in providers [#built-in-providers]

The current provider catalog is grouped below. Each row names the one-time setup at the receiving service and the values to supply when creating the destination. Values called credentials are write-only. A URL marked as a capability URL is also stored as a secret and is masked after creation.

#### Observability & SIEM [#observability--siem]

Use these destinations to retain and search an event stream. They preselect the Security signals bundle, which includes high-volume enforcement events.

| Provider                                                                                                      | Set up in the receiving service                                      | Enter in Dome                                    |
| ------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------- | ------------------------------------------------ |
| [Datadog](https://docs.datadoghq.com/api/latest/logs/#send-logs)                                              | Create a Logs intake API key                                         | Datadog site and API key                         |
| [Splunk HEC](https://docs.splunk.com/Documentation/Splunk/latest/Data/UsetheHTTPEventCollector)               | Create an HTTP Event Collector token                                 | HEC base URL, optional sourcetype, and HEC token |
| [Axiom](https://axiom.co/docs/restapi/endpoints/ingestIntoDataset)                                            | Create an API token and choose a dataset                             | Axiom domain, dataset, and API token             |
| [Elasticsearch](https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-index_.html)             | Create an API key with index access                                  | Elasticsearch URL, index, and API key            |
| [Sumo Logic](https://help.sumologic.com/docs/send-data/hosted-collectors/http-source/logs-metrics/)           | Add an HTTP Logs & Metrics Source to a hosted collector              | HTTP Source Address capability URL               |
| [New Relic](https://docs.newrelic.com/docs/logs/log-api/introduction-log-api/)                                | Create a license or ingest key                                       | US or EU region and license or ingest key        |
| [Dynatrace](https://docs.dynatrace.com/docs/dynatrace-api/environment-api/log-monitoring-v2/post-ingest-logs) | Create an access token with `logs.ingest`                            | Environment URL and access token                 |
| [CrowdStrike Falcon LogScale](https://library.humio.com/logscale-api/log-shippers-hec.html)                   | Create a repository ingest token                                     | LogScale base URL and ingest token               |
| [Google SecOps](https://docs.cloud.google.com/chronicle/docs/ingestion/setup-siem-webhook)                    | Create a Webhook feed and generate its secret                        | Feed endpoint, API key, and secret key           |
| [Panther](https://docs.panther.com/data-onboarding/data-transports/http)                                      | Create an HTTP log source with Bearer authentication                 | Source URL and bearer token                      |
| [Better Stack](https://betterstack.com/docs/logs/ingesting-data/http/logs/)                                   | Create an HTTP Telemetry source                                      | Ingesting host URL and source token              |
| [Honeycomb](https://docs.honeycomb.io/api/events/createevent)                                                 | Create an ingest key and choose a dataset                            | API host, dataset, and ingest key                |
| [Grafana Loki](https://grafana.com/docs/loki/latest/reference/loki-http-api/)                                 | Copy the Loki push URL and create a `logs:write` access policy token | Push URL, numeric instance ID, and access token  |

#### Dev & automation [#dev--automation]

Use these destinations to start workflows, open tickets, or forward events to another event bus. Each preset has a recommended event bundle, but you can always change the event selection.

| Provider                                                                                                      | Set up in the receiving service                                                    | Enter in Dome                                            |
| ------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -------------------------------------------------------- |
| [GitHub](https://docs.github.com/en/rest/repos/repos#create-a-repository-dispatch-event)                      | Create a token that can dispatch to the target repository                          | `owner/repo` and access token                            |
| [Jira Automation](https://support.atlassian.com/cloud-automation/docs/jira-automation-triggers/)              | Add an Incoming webhook trigger to an automation rule                              | Incoming webhook capability URL                          |
| [Zapier](https://help.zapier.com/hc/en-us/articles/8496288690317-Trigger-Zaps-from-webhooks)                  | Create a Zap with Webhooks by Zapier **Catch Hook**                                | Catch Hook capability URL                                |
| [Tines](https://www.tines.com/docs/actions/types/webhook/)                                                    | Add a Webhook action to a story                                                    | Webhook capability URL                                   |
| [Torq](https://kb.torq.io/articles/9139841-webhook)                                                           | Add a Webhook trigger to a workflow                                                | Webhook capability URL and optional bearer token         |
| [Make](https://apps.make.com/gateway)                                                                         | Add a Custom webhook trigger to a scenario                                         | Webhook capability URL and optional API key              |
| [n8n](https://docs.n8n.io/integrations/builtin/core-nodes/n8n-nodes-base.webhook/)                            | Add a Webhook node, activate the workflow, and copy its Production URL             | Production capability URL and optional header-auth token |
| [Airtable](https://support.airtable.com/docs/when-webhook-received-trigger)                                   | Add a **When webhook received** automation trigger                                 | Generated capability URL                                 |
| [ServiceNow](https://www.servicenow.com/community/developer-advocate-blog/inbound-rest-api-keys/ba-p/2854924) | Create a REST API Key and attach its inbound authentication profile to an endpoint | Endpoint URL and REST API key                            |
| [Azure Event Grid](https://learn.microsoft.com/en-us/azure/event-grid/post-to-custom-topic)                   | Create an Event Grid Schema custom topic and copy a static access key              | Topic endpoint and access key                            |

#### Incident & chat [#incident--chat]

Use these destinations for low-noise human notification and paging. They preselect the Incidents bundle, which you can refine with event and result filters.

| Provider                                                                                                                                                       | Set up in the receiving service                                                                | Enter in Dome                     |
| -------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | --------------------------------- |
| [PagerDuty](https://developer.pagerduty.com/docs/send-alert-event)                                                                                             | Add an Events API v2 integration to the target service                                         | Integration routing key           |
| [Slack](https://api.slack.com/messaging/webhooks)                                                                                                              | Create an Incoming Webhook for the target channel                                              | Incoming webhook capability URL   |
| [Jira Service Management Ops](https://developer.atlassian.com/cloud/jira/service-desk-ops/rest/v1/api-group-integration-events/)                               | Add an API integration to a team                                                               | Integration API key               |
| [incident.io](https://docs.incident.io/articles/2353344082-custom-http-alert-sources)                                                                          | Create an HTTP Alert source using the custom payload option                                    | Alert source URL and bearer token |
| [Microsoft Teams](https://support.microsoft.com/en-us/office/create-incoming-webhooks-with-workflows-for-microsoft-teams-8ae491c7-0394-4861-ba59-055e33f75498) | In the target channel add **Workflows → Post to a channel when a webhook request is received** | Workflow capability URL           |
| [Discord](https://docs.discord.com/developers/resources/webhook)                                                                                               | In the target channel create a webhook under **Integrations**                                  | Webhook capability URL            |

> **Note**: Microsoft Teams uses the Workflows webhook, not the retiring classic Office 365 connector. For n8n, use the active workflow's Production URL rather than its temporary Test URL.

### Event bundles [#event-bundles]

When creating a subscription, choose one of four curated bundles, individual event types, or all events. Bundles are starting points, not limits. The [Event catalog](/reference/events/catalog) is the complete source for event types, fields, and filterability.

| Bundle             | Includes                                                                                             | Best for                             |
| ------------------ | ---------------------------------------------------------------------------------------------------- | ------------------------------------ |
| Agent lifecycle    | Agent state changes and managed agent run lifecycle                                                  | Operational inventory and automation |
| Governance changes | Rules, workspace configuration, membership, connections, gateways, tools, and verification providers | Change management                    |
| Security signals   | Guard evaluations, Court deliberations, and credential lifecycle                                     | SIEM and security analytics          |
| Incidents          | Agent suspension or revocation, audit export runs, and SIEM stream delivery failure                  | Paging and human notification        |

Denials are not an event type. Subscribe to the operation you need and add `result=denied`. The Security signals and Incidents bundles include relevant enforcement events, but the filter decides whether a receiver sees only refused operations.

## Create a subscription [#create-a-subscription]

Create a subscription and its destination atomically. A failed request leaves neither record behind. The response reveals the destination's `whsec_…` signing secret **once**. Store it before moving on. It is only rotatable afterward, never readable.

On the API, pass either `delivery_endpoint` (create a new destination) or `destination_id` (attach to an existing one). Never both. Standalone destination RPCs (`ListDestinations`, `CreateDestination`, `UpdateDestination`, `RotateDestinationSecret`, `DeleteDestination`) support shared-destination setups. CLI and MCP create the destination inline with the subscription.

> **Note**: Requires `eventing.manage`.

Custom HTTPS endpoint:

```bash
dome webhooks subscriptions create alerts \
  --url https://ops.example.com/hooks/dome \
  --event-type agent.suspend \
  --event-type bundle.deploy
```

Slack via incoming-webhook URL:

```bash
dome webhooks subscriptions create slack-alerts \
  --provider slack \
  --setting webhook_url=https://hooks.slack.com/services/T.../B.../XXXX \
  --event-type agent.suspend \
  --event-type agent.revoke \
  --filter 'result=denied'
```

For provider-specific settings, credentials, shared destinations, MCP, and API examples, see the [webhooks CLI reference](/cli/operate/webhooks).

### Filters [#filters]

You can narrow which events deliver. An event must satisfy every filter that applies to its type. A filter constrains only event types that carry its field.

Exact match

```bash
dome webhooks subscriptions create prod-only \
  --url https://... --event-type agent.suspend \
  --filter 'agent_name=checkout-worker'
```

Glob pattern (`*` any run, `?` one char, full-value match)

```bash
dome webhooks subscriptions create demo-tools \
  --url https://... --event-type tool.call \
  --filter 'tool_name~=demo-mcp/*'
```

OR set (repeat the same key)

```bash
dome webhooks subscriptions create critical-agents \
  --url https://... --event-type agent.suspend \
  --filter 'agent_name=checkout-worker' \
  --filter 'agent_name=billing-worker'
```

Envelope filters apply to every event type: `stage` (`attempted` / `completed`), `result` (`allowed` / `denied`), `denial.reason`, and `error` (boolean presence). Payload filters include `agent_name`, `connection_name` (resolved from IDs at delivery time), `agent_id`, `tool_name`, plus each event type's own filterable fields. [`dome audit catalog`](/operate/audit#browse-the-event-catalog) and the dashboard Event catalog mark them. Repeated keys OR. Distinct keys AND. Caps: 16 keys, 16 alternatives per key, 256-byte patterns with up to 8 wildcards.

Per-request events (`tool.call`, `guard.filter.evaluate`, `guard.validator.evaluate`) are high volume. Point them at a log sink rather than a chat channel, and narrow with filters. `model.call` is on the audit trail and is not delivered as a webhook.

## Route external escalation decisions [#route-external-escalation-decisions]

An external [escalation](/govern/escalations) resolver requires an **active destination in the same workspace** and an active subscription to the exact `escalation.judgment.create` event. That event is the only delivery that can carry the decision link. `escalation.judgment.resolve` is optional, but subscribe to it when the receiving system needs to reconcile approvals, denials, and expirations.

Create the destination and required subscription, then retrieve the destination ID for the escalation workflow:

```bash title="Create an external-approval destination"
dome webhooks subscriptions create external-approvals \
  --url https://approvals.example.com/hooks/dome \
  --event-type escalation.judgment.create \
  --event-type escalation.judgment.resolve \
  --filter 'resolver_kind=external'

dome webhooks subscriptions get external-approvals
```

The `get` output includes **Destination ID**. Set that UUID as `external.destinationId` in the escalation's judgment step. Keep the destination active. Disabling or deleting it invalidates its outstanding decision links. A subscription that omits `escalation.judgment.create`, or an inactive subscription, cannot deliver a decision link.

The targeted `escalation.judgment.create` delivery contains `data.action_url` only when the destination is the one named by that external resolver. The same event sent to any other destination has an empty `action_url`. Treat a populated URL as a bearer credential: anyone who obtains it can approve or deny until the judgment expires. Do not forward it to broad channels, log it, or expose retained delivery bodies to people who should not hold approval authority.

`data` also includes the judgment, escalation, version, step, resolver, expiry, agent, action, resource, policy outcome, and request fingerprint. The optional `escalation.judgment.resolve` delivery records the final verdict, whether it expired, and the destination ID for a link-based decision. Refer to the [escalation reference](/reference/controls/escalations#webhook-payloads-and-decision-links) for the complete payload contract and to [Configure escalations](/govern/escalations#send-a-decision-externally) for the workflow configuration.

## Test a subscription [#test-a-subscription]

Send a fixed `eventing.test` event through a subscription's destination to verify signing, headers, and the destination's own routing.

> **Note**: Requires `eventing.manage`.

**CLI**

```bash
dome webhooks subscriptions test alerts
```

The command prints the queued delivery ID. Check the outcome with `dome webhooks deliveries get <id>`.

> **Note**: Reference: [`dome webhooks subscriptions test`](/cli/operate/webhooks#send-test-event)

**MCP**

Tool: `dome_webhooks_subscription_test`

> **Note**: Reference: [`dome_webhooks_subscription_test`](/reference/mcp/webhooks#subscription-test)

**Agent**

```text title="Test a webhook subscription"
Send a test event through the webhook subscription named alerts.
```

## Verify a signature [#verify-a-signature]

Verify custom HTTPS deliveries with any Standard Webhooks library. Return `2xx` within 10 seconds to acknowledge. Acknowledge first, process async. Slow handlers time out and burn retry budget.

**Node.js**

```javascript
import { Webhook } from "standardwebhooks";

const wh = new Webhook(process.env.DOME_WEBHOOK_SECRET); // whsec_...

app.post("/webhooks/dome", express.raw({ type: "application/json" }), (req, res) => {
  try {
    const event = wh.verify(req.body, req.headers);
    // Dedupe on req.headers["dome-event-id"], then process async.
    res.status(202).send();
  } catch {
    res.status(400).send("invalid signature");
  }
});
```

**Python**

```python
from standardwebhooks.webhooks import Webhook

wh = Webhook(os.environ["DOME_WEBHOOK_SECRET"])  # whsec_...

@app.post("/webhooks/dome")
def receive(request):
    try:
        event = wh.verify(request.body, dict(request.headers))
        # Dedupe on request.headers["dome-event-id"], then process async.
        return HttpResponse(status=202)
    except Exception:
        return HttpResponse(status=400)
```

## Inspect deliveries [#inspect-deliveries]

Inspect delivery attempt history, including the retained body while it is available.

> **Note**: Requires `eventing.view`.

**CLI**

Failed deliveries in a time window:

```bash
dome webhooks deliveries list --status failed --start 2026-07-14T00:00:00Z
```

One delivery with attempt history and the retained body:

```bash
dome webhooks deliveries get <delivery-id> --body
```

> **Note**: Reference: [`dome webhooks deliveries list`](/cli/operate/webhooks#list-deliveries), [`get`](/cli/operate/webhooks#get-delivery)

**MCP**

Tools: `dome_webhooks_delivery_list`, `dome_webhooks_delivery_get`.

> **Note**: Reference: [`dome_webhooks_delivery_list`](/reference/mcp/webhooks#delivery-list), [`dome_webhooks_delivery_get`](/reference/mcp/webhooks#delivery-get)

**Agent**

```text title="List failed webhook deliveries"
List failed webhook deliveries since 2026-07-14T00:00:00Z.
```

## Replay deliveries [#replay-deliveries]

Replay one delivery or bulk-replay failures in a window. A replay creates a **new** delivery from the retained body (fresh `webhook-id`, same `Dome-Event-Id`) so consumers that dedupe correctly ignore the overlap. Bulk replay processes up to 500 deliveries per run. Repeat to continue. Canceled deliveries are never recovered.

> **Note**: Requires `eventing.replay`.

**CLI**

Replay one delivery:

```bash
dome webhooks deliveries replay <delivery-id>
```

Bulk-replay terminal failures from the last 24 hours:

```bash
dome webhooks deliveries replay-failed --since 24h
```

Narrow by subscription and status:

```bash
dome webhooks deliveries replay-failed --since 7d --subscription alerts --status failed,dlq
```

`replay-failed` prints `matched · replayed · skipped (body expired) · failed`. It is safe to re-run: deliveries with a live or succeeded replay are not matched again.

> **Note**: Reference: [`dome webhooks deliveries replay`](/cli/operate/webhooks#replay-delivery), [`replay-failed`](/cli/operate/webhooks#replay-failed-deliveries)

**MCP**

Tools: `dome_webhooks_delivery_replay`, `dome_webhooks_delivery_replay_failed`, `dome_webhooks_delivery_cancel`.

```json
{
  "name": "dome_webhooks_delivery_replay_failed",
  "arguments": { "since": "24h", "subscription": "alerts" }
}
```

> **Note**: Reference: [`dome_webhooks_delivery_replay_failed`](/reference/mcp/webhooks#delivery-replay-failed)

**API**

```http
POST /v1/webhooks/deliveries/replay-failed
Content-Type: application/json

{
  "workspace_id": "ws_...",
  "since": "2026-07-14T00:00:00Z",
  "destination_id": "dst_...",
  "statuses": ["failed", "dlq"],
  "max_deliveries": 500
}
```

The response returns `matched`, `replayed`, `skipped_body_expired`, and `failed` counts plus `replay_delivery_ids`. Also available: `ReplayDelivery`, `CancelDeliveryRetry`.

> **Note**: Reference: Eventing `ReplayFailedDeliveries` RPC

**Agent**

```text title="Replay failed webhook deliveries"
Replay all failed webhook deliveries from the last 24 hours.
```

## Rotate the signing secret [#rotate-the-signing-secret]

Rotate a destination's signing secret without dropping deliveries. For 24 hours, the `webhook-signature` header carries a signature per key (current first, previous second) so a consumer verifying with either secret keeps working. Update your verifier to the new secret within the 24-hour grace window.

> **Note**: Requires `eventing.manage`.

**CLI**

```bash
dome webhooks subscriptions rotate-secret alerts
```

The command prints the new signing secret once (`whsec_…`) with its key ID.

> **Note**: Reference: [`dome webhooks subscriptions rotate-secret`](/cli/operate/webhooks#rotate-signing-secret)

**MCP**

Tool: `dome_webhooks_subscription_rotate_secret`

> **Note**: Reference: [`dome_webhooks_subscription_rotate_secret`](/reference/mcp/webhooks#subscription-rotate-secret)

**Agent**

```text title="Rotate a webhook signing secret"
Rotate the signing secret for the webhook subscription named alerts.
```

## Next steps [#next-steps]

* [Audit events](/operate/audit) for the durable record
* [Escalations](/govern/escalations) to configure external approval workflows
* [Escalation reference](/reference/controls/escalations#webhook-payloads-and-decision-links) for external-decision payloads
* [Export Data](/manage/export) for scheduled batch export
* [Stream Live Events](/operate/observe) for live Audit v1 streaming