> For the complete documentation index, see [llms.txt](https://docs.autopilotmonitor.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.autopilotmonitor.com/integrations/notifications.md). Agents can also search and read this documentation through its [MCP server](https://docs.autopilotmonitor.com/~gitbook/mcp).

# Notifications

Enrollment notifications for Teams, Slack, Discord, paired phones and browsers (push), or any system via generic JSON webhook — setup per provider, triggers and the payload reference.

Autopilot Monitor sends enrollment events to your team the moment they happen — no one has to watch the portal. Notification channels are configured under **Settings → Tenant → Notifications**; you can define several named channels per tenant, each with its own provider.

## Providers

### Microsoft Teams — Workflow Webhook

1. In Teams, select **More options (…)** next to the target channel → **Workflows**.
2. Pick the template *"Send webhook alerts from anyone to Teams"* (Microsoft's documentation calls it *"Send webhook alerts to a channel"*), confirm team and channel, save, and copy the generated URL.
3. Paste it as the Webhook URL in Autopilot Monitor and select the *Teams (Workflow Webhook)* provider.

Don't use the variants *"from specific people"* or *"from people in an org"*: they accept only requests signed in with a Microsoft Entra account, and Autopilot Monitor posts without one, so Teams rejects its notifications.

Workflow webhooks are free and don't require a Power Automate Premium license.

Microsoft switched off the older Office 365 connectors (Incoming Webhook) in May 2026. A channel that used one needs a Workflow webhook.

### Slack

Create an **Incoming Webhook** in your Slack workspace (*Apps → Incoming Webhooks → Add*, pick the channel), copy the URL, select the *Slack* provider.

### Discord

Create a webhook in your Discord channel (*Channel settings → Integrations → Webhooks → New Webhook*), copy the URL, select the *Discord* provider. Notifications render as an embed; because Discord webhooks cannot post buttons, links (e.g. to the session) appear as markdown links inside the message.

### Generic JSON webhook

Any HTTPS endpoint that accepts a JSON POST — a ticketing system, an automation platform, or an SMTP gateway (e.g. Postal) if you want notifications as email. This provider additionally supports **custom HTTP headers** (e.g. an `Authorization` header for your endpoint) and an optional **signing secret** for [HMAC request verification](#verifying-signed-requests).

#### Azure Logic Apps and Power Automate

Use the Generic JSON provider to feed an Azure Logic App or a Power Automate flow — there is no separate provider because the **When a HTTP request is received** trigger has no payload format of its own: it accepts any JSON body and lets you describe its shape on the receiving side.

1. Start the logic app or flow with the trigger **When a HTTP request is received**, leave the method at POST, and save — the trigger URL (including its `sig=` signature) is generated on save.
2. Paste that URL as the Webhook URL in Autopilot Monitor, select the *Generic JSON* provider, save, and click **Send Test Notification**. The request appears in the run history.
3. In the trigger, choose **Use sample payload to generate schema** and paste the body of that test run (or the payload from the [reference below](#generic-json-payload-reference)). The fields then show up as dynamic content in later steps; branch on `eventType` with a Switch action.

{% hint style="warning" %}
Leave the trigger's **Schema Validation** setting off, or keep the generated schema free of `required` and `additionalProperties: false`. Fields without a value are omitted from the payload, and new fields are added within the same `schemaVersion` — a strict schema would reject those requests with HTTP 400.
{% endhint %}

The trigger URL carries its own shared-access signature, so treat it like a password. The optional signing secret adds the HMAC headers described below, but Logic Apps has no built-in expression to verify an HMAC — use it only if a downstream step (e.g. an Azure Function) checks it. In Power Automate this trigger is a Premium connector; in Azure Logic Apps it is billed per execution.

### Push to paired devices

Sends the channel's alerts as push notifications to the phones and browsers your Admins and Operators pair — encrypted end to end, without an app store app or a messenger account. Select the *Push to paired devices* provider; there is no URL, and a tenant has one Push channel. Pairing, **Notify me when done** and what a push contains: [Push Notifications](https://docs.autopilotmonitor.com/integrations/push-notifications.md).

## Triggers

| Toggle                 | Fires when                                                                                     |
| ---------------------- | ---------------------------------------------------------------------------------------------- |
| **Notify on Start**    | An enrollment session starts                                                                   |
| **Notify on Success**  | A session completes successfully, or pre-provisioning finishes                                 |
| **Notify on Failure**  | A session ends in failure — keep this one on                                                   |
| **Hardware rejection** | The hardware whitelist rejects a device                                                        |
| **SLA**                | An SLA target is breached or met again, or enrollments fail in a row                           |
| **What's new**         | New platform or agent changelog entries go live — a product-update digest, not a session event |

A Push channel uses the same triggers; its alerts reach every paired device of your Admins and Operators.

**Send Test Notification** posts a sample message to verify the configuration end to end.

**What's new** is the one trigger that is not about an enrollment: whenever new entries appear in the portal's What's new panel, every channel with the toggle on receives one message listing them, with links into the panel and the documentation. It is off by default.

**SLA** alerts need [SLA targets](https://docs.autopilotmonitor.com/portal-guide/sla-compliance.md); the SLA Targets settings decide which breaches are checked.

SLA alerts judge the success rate and the P95 duration over the **last 30 days** and the app install rate over the **current ISO week** — the same periods the [SLA Compliance](https://docs.autopilotmonitor.com/portal-guide/sla-compliance.md#which-period-each-number-covers) page shows in its banner and gauges. A breach is reported when it starts and again only after new enrollments (or app installs) have finished since the last alert — never more often than the repeat interval; a tenant with no new enrollments is not reminded of the same value. A resolution alert follows when the target is met again.

## Channel status

Each saved channel shows a status dot next to its name, based on its recent deliveries:

| Status                 | Meaning                                                                                                  |
| ---------------------- | -------------------------------------------------------------------------------------------------------- |
| **Operating normally** | Recent deliveries were accepted.                                                                         |
| **Failure rate**       | Some of the last 20 deliveries failed within the past seven days; the others went through.               |
| **Error**              | At least two deliveries in a row failed. The card shows the reason, for example `HTTP 401 Unauthorized`. |
| **No deliveries yet**  | Nothing was sent since the channel's destination was last changed.                                       |

Hover the dot to see the last delivery and the last failure. A channel in **Error** keeps receiving notifications, so it recovers by itself once the destination accepts them again. After you fix the destination, **Send Test** updates the status right away. Tenant Admins see the status.

A Push channel has no status dot: each paired device shows its own status under **Push devices**.

## In-portal alerts

Some alerts are delivered as **bell notifications** in the portal header rather than through the webhook — they are about your configuration or your hardware, not about a single enrollment, and they are raised once per subject instead of per event:

| Alert                                             | Raised when                                                                                                                                                                                                                                                                                                                                                                                                           | Seen by            |
| ------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------ |
| **Rule fires more often than usual**              | An analyze rule's [regression detection](https://docs.autopilotmonitor.com/rules/analyze-rules.md#regression-detection) flags a sustained, statistically separated increase in its hit rate. Links straight to the rule card.                                                                                                                                                                                         | Tenant Admins      |
| **App version installs slower**                   | A newly rolled-out app version's median install time (the final install attempt) rises sharply above the previous version's — at least twice as long and 5+ minutes more, with enough measured installs on both sides to be meaningful. Links to the [app's detail page](https://docs.autopilotmonitor.com/portal-guide/software-inventory-and-vulnerabilities.md#per-app-deep-dive). Raised once per (app, version). | Tenant Admins      |
| **Device with an incompatible TPM**               | A device's TPM cannot sign with RSA-PSS, so the agent could not connect from it with the device certificate. Some devices connect after setup and a restart; the [Hardware Whitelist](https://docs.autopilotmonitor.com/reference/settings.md#hardware-whitelist) panel shows which ones did. Otherwise update the TPM firmware or replace the device.                                                                | Tenant Admins      |
| **Notification channel failing**                  | A channel's status turned to **Error** (see [Channel status](#channel-status)). Raised once; the next successful delivery or test clears the condition. Links to the notification settings.                                                                                                                                                                                                                           | Tenant Admins      |
| **Hardware rejection**                            | A device was refused because it is outside the tenant's [Hardware Whitelist](https://docs.autopilotmonitor.com/reference/settings.md#hardware-whitelist). Also sent to the webhook, if one is configured.                                                                                                                                                                                                             | Tenant Admins      |
| **SLA breach / resolution, consecutive failures** | Same events as the webhook alerts above.                                                                                                                                                                                                                                                                                                                                                                              | All tenant members |

## Generic JSON payload reference

The generic provider sends a stable, versioned payload — `schemaVersion` is only bumped on breaking changes:

```json
{
  "schemaVersion": "1.0",
  "eventType": "enrollment_failed",
  "severity": "Error",
  "title": "Enrollment failed",
  "summary": "…",
  "themeColor": "D13438",
  "primaryUrl": "https://…/sessions/{id}",
  "facts":    [ { "name": "Device", "value": "…" } ],
  "sections": [ { "title": "…", "text": "…" } ],
  "actions":  [ { "type": "openUrl", "title": "…", "url": "…" } ]
}
```

* `eventType` values: `enrollment_started`, `enrollment_succeeded`, `enrollment_failed`, `preprovisioning_resumed`, `preprovisioning_completed`, `preprovisioning_failed`, `sla_breach`, `sla_resolved`, `consecutive_failures`, `hardware_rejected`, `test`.
* `severity` is one of `Info`, `Success`, `Warning`, `Error`.
* `primaryUrl` is the first link action — a session link for enrollment alerts, a portal link otherwise; inspect `actions[]` (each carries a title) to disambiguate. Fields without a value are omitted rather than sent as `null`.
* In `sla_breach`, `sla_resolved` and `consecutive_failures`, the `Tenant` fact carries your tenant's name — the **Company** under [Contact](https://docs.autopilotmonitor.com/reference/settings.md#contact), else the domain — and the `Tenant ID` fact carries the ID. Key automations on `Tenant ID`.

{% hint style="info" %}
**Routing tip:** key your automation on `eventType`, not on `title` — titles are human-facing and may be refined over time; `eventType` and the schema are the contract.
{% endhint %}

### Verifying signed requests

If you configure a **Signing Secret** on a generic JSON channel, every request carries two extra headers so your endpoint can verify it really came from Autopilot Monitor and was not tampered with:

| Header                         | Content                                                                                                          |
| ------------------------------ | ---------------------------------------------------------------------------------------------------------------- |
| `X-AutopilotMonitor-Timestamp` | Unix timestamp (seconds) the request was signed at                                                               |
| `X-AutopilotMonitor-Signature` | `sha256=` followed by the lowercase hex HMAC-SHA256 of `"{timestamp}.{rawBody}"`, keyed with your signing secret |

To verify: concatenate the timestamp header, a `.`, and the **raw request body** (before any JSON parsing), compute HMAC-SHA256 with your secret, and compare against the signature header using a constant-time comparison. Reject requests whose timestamp is older than a few minutes to prevent replay.

```powershell
function Test-AutopilotMonitorSignature {
    param(
        [string]$Secret,           # the channel's signing secret
        [string]$Timestamp,        # X-AutopilotMonitor-Timestamp header value
        [byte[]]$RawBody,          # raw request body bytes, before any JSON parsing
        [string]$SignatureHeader   # X-AutopilotMonitor-Signature header value
    )
    $hmac = [System.Security.Cryptography.HMACSHA256]::new([Text.Encoding]::UTF8.GetBytes($Secret))
    $message = [Text.Encoding]::UTF8.GetBytes("$Timestamp.") + $RawBody
    $expected = 'sha256=' + (($hmac.ComputeHash($message) | ForEach-Object { $_.ToString('x2') }) -join '')
    [System.Security.Cryptography.CryptographicOperations]::FixedTimeEquals(
        [Text.Encoding]::UTF8.GetBytes($expected),
        [Text.Encoding]::UTF8.GetBytes($SignatureHeader))
}
```

The snippet targets PowerShell 7; on Windows PowerShell 5.1, replace the `FixedTimeEquals` call with `$expected -ceq $SignatureHeader` (a plain case-sensitive comparison, without the timing-attack hardening).

The signature covers the exact bytes of the body — verify before re-serializing the JSON, since any reformatting changes the digest.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.autopilotmonitor.com/integrations/notifications.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
