> ## Documentation Index
> Fetch the complete documentation index at: https://docs.struct.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Read results and configure delivery

> Separate monitor configuration, evaluation and notification evidence.

Monitor history tells you when a condition fired; delivery sends that result to the destination your team chose.

## Inspect the monitor first

```bash theme={null}
struct monitors get MONITOR_ID --json
struct monitors chart MONITOR_ID --window 6h --bucket 5m --json
struct monitors firings MONITOR_ID --json
```

Read `queryError` even when the command exits successfully. Firings are condition crossings, not a log of every successful evaluation. Use pagination when reviewing older firings.

## Configure delivery

The workspace must be claimed. [Connect Slack](https://docs.struct.ai/integrations/slack.md) and confirm the destination with the person. Read the existing monitor before changing its delivery list: supplying `deliveryConfigs` replaces that list, so retain any destinations that should stay.

For a monitor that should deliver only to the selected Slack channel, save `delivery.json`:

```json theme={null}
{
  "deliveryConfigs": [
    {
      "type": "slack",
      "config": { "channel": "#production-alerts" }
    }
  ]
}
```

Replace the example channel with its approved name, link or ID. Struct saves a name or link as the channel's ID; if Slack can't find it, the update is refused with `channel_not_found` and the monitor is unchanged. Invite Struct to a private channel first, then apply and read back:

```bash theme={null}
struct monitors update MONITOR_ID --file delivery.json --json
struct monitors get MONITOR_ID --json
```

Email delivery uses `type: "email"` and `config: { "to": ["oncall@example.com"] }`, with at most 20 combined `to` and `cc` recipients. Webhook delivery uses `type: "webhook"` and an HTTPS `config.url`; optional `hmacSecret` and `headers` configure authentication. Inspect the [MCP monitor schema](https://docs.struct.ai/mcp/tools/monitors.md) for the current input contract. Do not copy masked webhook credentials into a new destination or put real credentials in a checked-in JSON file. Use protected temporary input when required.

## Send to a notification group

A notification group is a named set of Slack channels and webhooks that several monitors share. Firings and repeats go to the groups' destinations as well as the monitor's own `deliveryConfigs`; a destination listed twice gets one message. All-clears go only to destinations that received that firing and are still configured. People manage groups in the web app under **Settings → Notification groups**.

> `struct notification-groups` needs CLI **3.1.0 or newer**. If `struct notification-groups --help` fails, use the [MCP notification group tools](https://docs.struct.ai/mcp/tools/monitors.md#notification-groups), or ask the person to use Settings.

Reuse a group that already covers the right destinations before creating one:

```bash theme={null}
struct notification-groups list --query on-call --json
struct notification-groups create --name "On-call" --channel '#on-call' --repeat 1h --json
```

Slack destinations accept a channel ID (`C0123ABCDE`), `#name` (`#on-call`) or Slack link; Struct resolves and stores the canonical channel ID (invite Struct to private channels first, or pass their channel ID/link). `--repeat` sets how often a still-firing alert is sent again: at least `1m` (at least `15m` for iMessage), at most 3 reminders. Notification groups also support:

* **Webhooks** (`--file` JSON with an `https` URL resolving to a public address, optional `hmacSecret` and `headers`).
* **iMessage** (`--imessage <email>` / `--imessage-chat <chat-id>`, optional `--investigate`): requires iMessage enabled on the workspace, an active pairing (**Settings → Account → iMessage**) for person recipients, and an existing group chat containing Struct and the editor for chat recipients. Discover eligible recipients and chat IDs first with `struct notification-groups imessage-recipients --json`.
* **SMS** (`--sms <E.164>`): start verification with `struct phone-numbers add <E.164>`, then complete it with `struct phone-numbers verify <E.164> --code <code>`.

Attach groups to a monitor with `notificationGroupIds`. It replaces the monitor's list of groups, so read the monitor first and keep any that should stay. Save `groups.json`:

```json theme={null}
{ "notificationGroupIds": ["GROUP_ID"] }
```

```bash theme={null}
struct monitors update MONITOR_ID --file groups.json --json
struct monitors get MONITOR_ID --json
```

A group reaches at most 20 Slack channels, webhooks, iMessage recipients and SMS numbers. A monitor together with all its groups reaches at most 20 distinct receivers; each Slack channel, webhook URL, iMessage recipient, SMS number and email `to`/`cc` set counts once. A monitor that sends to Struct triage (`"type": "managed_monitors"`) can't also use groups. A group that a monitor still uses can't be deleted; remove it from those monitors first. Creating, changing, testing and deleting groups needs the configure permission.

## Prove the path

> `struct notification-groups test` ships in the upcoming CLI release. Until then, call `POST /api/notification-groups/{group_id}/test` or use a disposable monitor with a controlled workload.

Test every configured destination in a notification group without forcing a real monitor to fire:

```bash theme={null}
struct notification-groups test GROUP_ID --json
```

`test` requests a clearly marked `[Test]` notification for every configured Slack channel, webhook, iMessage recipient and SMS number in the group (claimed workspaces only) and returns per-destination `{type, target, ok, error, errorCode}` outcomes. Confirm `ok: true` for every destination, then confirm the actual test notification arrived at each destination before calling alert routing complete. For iMessage, success means the alert was handed to the teammate; for SMS, it means the provider accepted the message. A saved destination or successful monitor preview alone does not establish delivery.

## Silence or resolve

```bash theme={null}
struct monitors silence MONITOR_ID --for 2h --reason "Planned maintenance"
struct monitors unsilence MONITOR_ID
struct monitors resolve MONITOR_ID FIRING_ID --reason "Verified recovery"
```

Only silence or resolve when requested. After an uncertain write response, read the monitor or firing before retrying. Closing a firing does not repair the application.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.