Alerts to Slack, Microsoft Teams and webhooks
Last updated 16 November 2026
For owners and managers who want a message in the channel their team already watches when something needs attention. At the end you will have added a destination for Slack, Microsoft Teams or your own webhook receiver, sent a test message, and, for a webhook, checked its signature in your own code.
What alerts do
An alert is one short message that Spellwarden sends to an address your organisation chose, when one of five events happens (see the events below). Owners and managers manage destinations under Settings, then Alerts; nobody else sees the page. Alerts are on the Team and Enterprise plans and in the 14-day trial, which has the Team features; two events, the registry denial and audit events, are for the Enterprise plan only. An organisation can hold at most 10 destinations.
Alerts are sent from a queue, usually within a minute of the event and never as part of the request that caused it: a failing receiver never slows a scan, an upload or a CI check. While an organisation is read-only because billing has lapsed, nothing is sent, you cannot add, change, test or resume a destination, and you can still remove one.
Add a destination
- Open Settings, then Alerts, and choose Add destination.
- Choose Slack, Microsoft Teams or Webhook, give it a label of up to 80 characters, paste the address and choose the events it should receive.
- Save, then choose Send test. A destination that has not passed a test shows Not tested yet and still receives events.
Spellwarden seals an address, and a webhook's signing secret, with an encryption key before it is stored, and never shows either again. After you save, only the last 4 characters appear, masked, so you can tell destinations apart. To change an address, paste a new one.
Set up Slack
In Slack, add an incoming webhook to the channel you want to use and copy its address. It has the form https://hooks.slack.com/services/T.../B.../token. Spellwarden accepts only that form, not just that host. Paste it into Add destination with the kind Slack. A message is one block of text with the headline, a few lines and an Open in Spellwarden link.
Set up Microsoft Teams
In Microsoft Teams, create a workflow that posts to a channel when a webhook request is received, and copy the address it gives you. Spellwarden accepts a secure address on port 443 whose host ends in environment.api.powerplatform.com or logic.azure.com. The retired Office 365 connector addresses are not accepted.
A message is an Adaptive Card (version 1.4) with the headline, the organisation, the highest severity, a few lines and an Open in Spellwarden button. Teams shows every name as plain text: the name of a skill, a server, a repository or a catalog entry, some of which are written by other people, never becomes a link or formatting in your channel.
Set up a webhook
A webhook sends a signed JSON request to your own receiver. The address must be https, at most 2000 characters, without a user name or password and without a fragment; any public host and port will do. You set the signing secret yourself, so your receiver can verify the signature: the field takes 32 to 128 characters, and Generate fills it with 32 random bytes from your browser so you can copy it into your receiver before you save. Spellwarden never generates or returns a secret. To rotate it, edit the destination and paste a new one.
For all three kinds, the address is looked up when you add it and again at every delivery. An address that is not public, such as a private network address, is refused with the code destination_private: Spellwarden sends alerts to public https addresses only.
The five events
A destination receives an event only when it lists the event and is active. Each event is one message, not one message per finding.
| Event | When it is sent | What the message names |
|---|---|---|
new_finding | A scan adds a new critical or high finding that is open. The first scan of a target counts: all its critical and high findings are new, and that is one alert. Accepted findings never alert. Scans that Spellwarden runs on a skill or an MCP server raise it, and so does the default-branch scan of a repository that CI uploads once it becomes the repository's current state; pull and merge request scans do not. | The item, how many new critical and high findings there are, and up to 5 of them: the rule id, the severity and the rule's own title. Never evidence or a location. |
catalog_advisory | A catalog entry that your organisation has installed is suspended or removed. It is sent once per event and organisation, with the same notice that goes to owners and managers by email. | The entry's public name, whether it was suspended or removed, and up to five of your places that use it. The private reason is not sent: the message says Open Spellwarden for the reason. |
gate_denial | The registry check in CI stops items. Enterprise plan only. To keep a pipeline that runs on every push from sending a message each time, the same repository and the same denied items alert once in 24 hours. Spellwarden records no admission request: the link in the message opens the dashboard, and nothing else changes in the check. | The repository as CI named it, how many items were denied by kind, and up to five names. |
tool_change | A probe of an MCP server finds tools, prompts, resources or instructions that differ from the server's approved tool list. One message per scan with a new change: the same change found again, also after a probe that could not reach the server, sends nothing, and a tool change never also sends new_finding. Tool change alerts explains the approved list. | The server, how many items changed, were added and were removed, up to five of them by kind and name with the total, and whether the private registry holds the server. Never a description, a schema or evidence. |
audit | Events of the organisation's audit log, about 6 minutes after they happen, from the moment a destination lists the event. Webhooks only, Enterprise plan only. The audit feed is the complete record and the webhook a notification: Audit feed for your SIEM says what it promises. | Up to 10 events in the order they happened, each with its time, action, target and who acted, by current name and email; more events come in the next message. Never the events' details. |
If an organisation leaves the Enterprise plan, a destination that listed the registry denial event or audit events keeps working for its other events, can still be edited, and stops receiving those events. Slack and Microsoft Teams destinations cannot list audit events. The tool change event is on every plan that has alerts. One more event, test, exists only for the Send test button.
What a message holds
A message is plain English: a headline such as 2 new critical or high findings in the skill "deploy-helper", the organisation's name, the highest severity, up to 5 lines and an Open in Spellwarden link to the page of the item in the dashboard. Names are cut to 100 characters with control characters removed. A message carries no evidence, no location and no text of your content other than the names of your own items. The link carries tags that say it came from an alert, the kind of destination and the event.
Delivery, retries and pausing
Send test makes one attempt at once with the test event and records whether it worked, without repeating your address; an organisation can send 30 tests an hour. The first attempt of a real delivery is usually made within a minute of the event. A delivery that fails for a reason that may pass is tried again after 1 minute, 5 minutes, 30 minutes, 2 hours and 6 hours, which makes up to 6 attempts over about 8.6 hours; a longer Retry-After from your receiver is honoured up to 6 hours. Failures that will not pass, such as a 4xx answer other than 408 and 429, a redirect, an address that is no longer public or an answer larger than Spellwarden reads, end the delivery at once.
- The destination's page lists its last 10 deliveries with their status, for 14 days. It never holds your address, a body or a response text.
- After 5 failed deliveries in a row the destination is paused, and owners and managers receive one email that says which destination stopped, why and how to resume it. A success resets the count.
- Resume sends a test and makes the destination active only if the test works.
- A destination receives at most 60 deliveries an hour; more are dropped. Audit alerts are counted apart, 120 tries an hour, so they never push out the other events, nor the other events them. An audit alert that ends failed or dropped is not sent again; its events stay in the audit feed.
- An organisation that is suspended, deleted or read-only receives nothing: due messages end skipped, with no call.
The webhook payload
The body is JSON of the schema spellwarden.alert.v1. Adding a field keeps v1; changing or removing one makes v2, so a receiver should ignore fields it does not know. Every request carries three headers:
| Header | Value |
|---|---|
Spellwarden-Event | The event: new_finding, catalog_advisory, gate_denial, tool_change, audit or test. |
Spellwarden-Delivery | The delivery id. It is the same on every retry of one delivery, so use it as an idempotency key. |
Spellwarden-Signature | t=<unix seconds>,v1=<hex>: the time of this attempt and the signature. Each attempt has a fresh time and signature over the same body. |
| Field | What it holds |
|---|---|
schema | spellwarden.alert.v1. |
id | The delivery id, the same as the Spellwarden-Delivery header. |
event | The event. |
created_at | When the message was made, ISO 8601, UTC. |
organisation | An object with the organisation's slug and name. |
summary | The headline. |
url | The dashboard page of the item, with the alert tags. |
item | An object with type (skill, mcp_server, repository or catalog_entry), id and name; all three are null for audit events. |
severity | critical or high for a new finding; for a tool change, the highest severity of its new findings (high, medium or low); otherwise null. |
findings | A list of up to five objects with rule_id, severity and rule_title; empty for the other events. |
findings_total | How many findings the message counts. |
details | A small object with extras of the event. For new_finding it holds new_critical and new_high, the counts of new critical and high findings. For catalog_advisory it holds status, affected_total and affected (the names of your places that use the entry). For gate_denial it holds total, kinds (how many items were denied in each list, such as skills) and names, a list of objects with name and kind. For tool_change it holds changed, added and removed (the counts since the approved list), names (up to five objects with kind and name; kind is tool, prompt, resource, resource_template or instructions, or tools when the approved list is no longer stored), names_total and held (whether the private registry holds the server). For audit it holds events (each with id, at, actor with kind, id, name and email, action and target), listed (how many events the message carries), more (true when more are waiting) and skipped (null, or from and to for the one message of a destination that fell more than a day behind, whose events must then be read from the audit feed). For test it is empty. Ignore members you do not know. |
Verify the signature
Verify every request before you act on it. The signature is HMAC-SHA256, keyed with your signing secret's UTF-8 bytes, over the string <t>.<body>: the value of t from the header, a dot and the exact bytes of the request body, as received. Do not parse and re-serialise the body first: the bytes signed are the bytes sent.
- Split the Spellwarden-Signature header at the commas and read t and v1.
- Reject the request when t is more than 5 minutes from your clock. That is five minutes either way, and it stops a captured request being replayed later.
- Compute the HMAC-SHA256 of t, a dot and the body with your secret, in hexadecimal.
- Compare it with v1 in constant time, with a function made for that, never with an equals sign.
- Use the delivery id as an idempotency key: a retry has the same id, so process a delivery once.
Python
import hashlib
import hmac
import time
def verify(secret: str, header: str, body: bytes, tolerance: int = 300, now: float | None = None) -> bool:
"""True when the Spellwarden-Signature header matches the body and is not older than the tolerance."""
fields = dict(part.split("=", 1) for part in header.split(","))
timestamp = fields["t"]
current = time.time() if now is None else now
if abs(current - int(timestamp)) > tolerance:
return False
signed = timestamp.encode("ascii") + b"." + body
expected = hmac.new(secret.encode("utf-8"), signed, hashlib.sha256).hexdigest()
return hmac.compare_digest(expected, fields["v1"])Node
import { createHmac, timingSafeEqual } from 'node:crypto';
export function verify(secret, header, body, toleranceSeconds = 300, now = Date.now() / 1000) {
const fields = Object.fromEntries(header.split(',').map((part) => part.split('=')));
if (Math.abs(now - Number(fields.t)) > toleranceSeconds) return false;
const expected = createHmac('sha256', secret).update(`${fields.t}.`).update(body).digest();
const received = Buffer.from(fields.v1 ?? '', 'hex');
return received.length === expected.length && timingSafeEqual(expected, received);
}openssl
Set T to the t value, BODY_FILE to a file that holds the exact body and SECRET to your signing secret. The last word of the output is the signature to compare with v1:
{ printf '%s.' "$T"; cat "$BODY_FILE"; } | openssl dgst -sha256 -hmac "$SECRET"An example to test against
This request is signed with the secret spellwarden-guide-secret-0123456789abcdef at the time 1763000000. Do not use this secret for anything real: it is published here so you can check your code. It is the same example Spellwarden's own tests check the signing code against. Your receiver should accept it only while it is within the tolerance, so pass the time explicitly when you test.
Spellwarden-Event: test
Spellwarden-Delivery: 0193f5a07c3e7b2a9d4e5f6a7b8c9d0e
Spellwarden-Signature: t=1763000000,v1=212a2d0b2197a9d62e0a089d092cd3d3ece78b145f4379497ac56ca12c57111d
{"schema": "spellwarden.alert.v1", "event": "test"}The signature of the body above is 212a2d0b2197a9d62e0a089d092cd3d3ece78b145f4379497ac56ca12c57111d.