Notifications¶
Signalith can send a message when a finding is raised. It can send to a Slack channel, a Microsoft Teams channel or chat, email, or a webhook such as a SOAR or ticketing system. Set this up on the Notifications tab of Settings. Only admins see the page.
There are two parts:
- A channel is a place messages go, such as Slack #soc or the SOC mailbox.
- A rule says which findings go to which channels. For example: "High and critical findings from any detection go to Slack #soc and Email SOC team."
Nothing is sent until a rule sends findings to a channel.
The same channels can also carry audit alerts: messages about Signalith's own sign-ins and changes, such as the built-in admin signing in or a user being deleted.
Add a channel¶
On Notifications, choose Add channel and pick a kind. When there are no channels
yet, the page offers the four kinds itself. Each kind asks for a Name. The name is shown
on the page, in rule summaries and in emails, so name the place it posts to, such as #soc.
Each kind of channel has Send test. It sends a test message through the settings in the dialog, before you save them, and says whether it worked. If a test fails, the dialog shows why, in plain words: the address could not be found, the certificate is not trusted, the receiver answered 404, and so on.
Slack¶
- In Slack, add the Incoming Webhooks app to your workspace. Pick the channel and copy
its Webhook URL (
https://hooks.slack.com/services/...). - In Signalith, choose Add channel, then Slack. Paste the URL and name the channel
after the Slack channel, such as
#soc. - Choose Send test, then Add channel.
Messages use Slack Block Kit: the finding's title, its urgency, detection, ATT&CK techniques and entities, and a link to the Findings page.
To add Acknowledge, Approve and Reject buttons, see Buttons in Slack and Teams.
Microsoft Teams¶
Teams messages go through a Workflows webhook. Microsoft retired the old Office 365 connectors ("Incoming Webhook"), and their URLs no longer work.
- In Teams, open the channel's ... menu, then Workflows. Choose Post to a channel when a webhook request is received. The template may also be called "Send webhook alerts to a channel".
- Pick the team and channel, then finish the workflow. Copy the URL it shows. The URL
usually starts with
https://prod-...logic.azure.com/workflows/...orhttps://... .environment.api.powerplatform.com/.... - In Signalith, choose Add channel, then Teams. Paste the URL, then Send test and Add channel.
Messages are Adaptive Cards (version 1.4) inside the {"type": "message", "attachments":
[...]} envelope that the Workflows template expects. A workflow you build yourself in
Power Automate works too, as long as it posts the card it receives.
A Workflows webhook can only post. For cards with buttons, use a Teams app channel instead: see Buttons in Slack and Teams.
Email¶
Signalith sends mail through your own mail server over SMTP.
| Setting | What to enter |
|---|---|
| Mail server, Port | Your mail server's name, such as smtp.office365.com, and its port |
| Connection | STARTTLS on port 587 (the default), TLS on port 465, or None. None is only allowed for a mail relay on this server (localhost), and sends no password. |
| User name, Password | The account to sign in with. Leave both empty for a server that does not need a sign-in. Passwords are only sent over an encrypted connection. Signalith uses PLAIN sign-in, or LOGIN when the server only offers that. |
| From | The address messages come from. Your mail server must allow the account to send as this address. |
| To | One or more addresses, separated by commas (at most 50) |
Signalith refuses to send when the server does not offer STARTTLS. It does not fall back to
sending in plain text. Each email has a plain-text body with the finding's details and a link.
The subject line is the urgency and title, such as [Signalith] High: Brute force against admin.
Webhook¶
A webhook channel POSTs a JSON body to any URL, such as a SOAR, a ticketing system or your own script.
- URL: where to send. A URL often holds a token, so Signalith encrypts it like a password.
- Signing secret (optional): signs each body so the receiver can check that it came from Signalith. See Checking the signature.
- Headers (optional): headers the receiver asks for, such as
Authorization: Bearer ...or an API key. Header values are encrypted. Signalith setsContent-Type,User-AgentandX-Signalith-Signatureitself, and these cannot be changed.
The receiver should answer with any 2xx status. The rest of the answer is not used. Signalith reads at most 64 KB of it, to quote in an error.
Advanced: private networks, this server, and private certificates¶
- Private addresses (10.x, 192.168.x, internal names) are allowed, since SOAR and firewalls live there.
- This server's own addresses (
localhost,127.0.0.1,::1) and cloud metadata addresses (such as169.254.169.254) are refused. This stops a channel from being used to reach services that only this machine can reach. To send to a receiver on the same machine, open Advanced and tick Allow this server's own addresses. Signalith's own OpenSearch address is always refused. - Signalith checks addresses after it looks up the name, so a name that resolves to a refused address is refused too.
- Certificate authority: certificates are always verified. If the receiver's certificate
comes from a private certificate authority, paste that authority's certificate (PEM, one
or more
-----BEGIN CERTIFICATE-----blocks) under Advanced. The system's trusted authorities still count. - Signalith does not follow a redirect to another server, and waits at most 10 seconds for an answer (30 seconds for email).
Buttons in Slack and Teams¶
Slack and Teams messages can carry buttons, so analysts act without opening Signalith:
- Acknowledge on a finding makes the analyst its owner (if it has none) and moves it from New to In progress, with a comment saying it was acknowledged in Slack or Teams.
- Reject on a playbook step that waits for approval stops the playbook, as Reject does on the Approvals page.
- Approve runs the step. It is only offered when the channel has Allow approving playbook steps from chat on. Off, analysts approve in Signalith, and chat offers only Reject and Acknowledge. Approving in Signalith asks for the password again when it was not entered in the last 5 minutes; a chat button cannot, so with this on, the chat app's own sign-in and the checks below stand in for it.
After a click, the message changes to say who did what, such as "Approved by andy in Slack", and the buttons go away. A link button that opens Signalith is always there too.
Who can click¶
A click counts only when every check passes. If one fails, nothing changes and only the person who clicked is told why.
- The request really comes from Slack or Teams. Slack signs each request with the app's
signing secret (
X-Slack-Signature); Signalith checks it, and refuses requests more than 5 minutes old. Teams sends a token signed by the Microsoft Bot Framework; Signalith checks the signature against Microsoft's published keys, that it was issued for this bot's app ID, that it has not expired, and that it names the Bot Connector address the request came from. Requests from another Microsoft Entra tenant are refused too. A Slack channel is used in the first Slack workspace a click comes from (with its current signing secret); clicks from any other workspace the app is shared with are refused. - The button is one Signalith made. Each button's value is signed with a key derived from the channel's secret, and names the finding or playbook step it acts on. A changed value is refused.
- The click is new. Slack and Teams sometimes send a request twice. Each click's ID is recorded for 2 hours, and a repeat is ignored.
- The chat account is linked to a Signalith user who can still sign in, has finished any password change or two-step sign-in setup they were asked for, and is an Analyst or Admin. Viewers' clicks are refused.
- The step still waits. If someone already approved or rejected it, or the playbook moved on, the click is refused with "It was already approved by ann."
Every click, link and refusal is in the audit log, with the Signalith user and the chat account.
Link a chat account¶
The first time someone clicks a button, Signalith does not know who they are in Signalith.
- Slack: Signalith answers with a message only they can see, holding a link. The link opens Signalith (sign in if asked), shows which Slack account will be linked, and asks them to confirm and enter their password again. Then they click the button again. The link works once and for 10 minutes.
- Teams: Teams has no message only one person sees, so the link goes the other way. In
Signalith, open the account menu, Chat accounts, then Link a Teams account. Enter
your password, then open a private chat with the Signalith app in Teams (Apps,
Signalith, Chat) and send the message it shows, such as
link ABCDE-FGHJK. The code works once and for 10 minutes. A code sent in a channel or group chat, where others can see it, is refused and stops working. Wrong codes are limited to 5 per 10 minutes for each Teams user.
Chat accounts in the account menu lists your linked accounts and unlinks them. Admins see every linked account under Linked chat accounts on the Notifications page, and can unlink any of them. A link ends when its Signalith user is deleted, and is never carried over to a new user who gets the same name. It also ends, like the user's sessions, when their password is changed or reset, when they sign out everywhere, and when their two-step sign-in is reset or turned off. They link again with their next click.
Set up Slack buttons¶
Buttons need a Slack app of your own, rather than only an incoming webhook.
- Set this server's public address (
server.public_url) on the Settings page. Slack must be able to reach it over HTTPS. - At api.slack.com/apps, choose Create New App, then From scratch, and pick your workspace.
- Under Incoming Webhooks, turn them on, choose Add New Webhook to Workspace, pick the channel and copy the Webhook URL.
- Under Basic Information, copy the Signing Secret (not the client secret).
- In Signalith, add or edit the Slack channel. Paste the webhook URL and the signing secret. Turn on Allow approving playbook steps from chat if you want an Approve button. Copy the Interactivity Request URL the dialog shows, and save.
- Back in Slack, under Interactivity & Shortcuts, turn interactivity on, paste the Request URL and save.
Set up Teams buttons¶
Buttons in Teams come from an Azure bot that you register in your own Microsoft Entra tenant.
- Set this server's public address (
server.public_url) on the Settings page. Teams must be able to reach it over HTTPS with a publicly trusted certificate. - In the Azure portal, create an Azure Bot. Choose Single Tenant and create a new Microsoft App ID.
- On the bot's Configuration page, copy the Microsoft App ID and the App Tenant ID. Open Manage Password (the app registration), then Certificates & secrets, and make a client secret. Copy its value.
- On the bot's Channels page, add Microsoft Teams.
- In Signalith, choose Add channel, then Teams app. Enter the app ID, tenant ID and client secret. Turn on Allow approving playbook steps from chat if you want an Approve button. Copy the Messaging endpoint the dialog shows, and save.
- Back on the bot's Configuration page, paste it as the Messaging endpoint and apply.
- On the Notifications page, open the channel's menu and choose Download Teams app. In Teams, upload the zip under Apps, then Manage your apps, Upload an app (your Teams admin may need to allow custom apps, or upload it for you), and add it to a team.
- As a Signalith admin, link your own Teams account (see
Link a chat account). Then, in the channel that should get the
messages, send
@Signalith post here. Only a linked admin can choose where messages go; adding the app to a team is not enough. The channel card then shows where it posts. Choose Send test.
To move messages to another Teams channel later, a linked admin sends @Signalith post
here there. Messages keep going to the old channel until an admin chooses Move on the
channel card on the Notifications page (after entering their password again), or Keep
to stay. Removing the app from the team it posts to stops the messages; the channel card
then says it is not added to a Teams channel.
The client secret is used only to get a token from Microsoft (login.microsoftonline.com)
to post as the bot. Signalith only posts to Bot Connector addresses of Microsoft
(smba.trafficmanager.net and other botframework.com and teams.microsoft.com
addresses). When the client secret expires, the channel's deliveries fail with "Microsoft Entra
refused the bot's credentials": make a new secret and enter it.
Buttons with several servers¶
Slack and Teams send clicks to the one address in server.public_url. When several
servers share one OpenSearch, linked accounts and click IDs are kept in OpenSearch (the
<prefix>_chat index), so any server can take a click. The server that takes it checks the
signature with the channel's secret from its own notifications file, so either point
server.public_url at the server that runs the background jobs, or keep the notifications
file the same on every server (as Which server sends suggests
anyway). A server whose file lacks the channel answers clicks with 404.
Add a rule¶
Choose Add rule. A rule has:
| Setting | Meaning |
|---|---|
| Name | Shown on the page and in deliveries |
| Send to | One or more channels |
| How urgent | The least urgency to send: Critical, High (the default), Medium, Low, or Any. Urgency is the finding's own (its severity, or the urgency set on it). |
| From | Any detection, or Only some: pick detections from the list |
| Least risk score (More options) | Only applies to findings that carry a risk score: the risk incident detections put one in result.risk_score. Other findings are sent whatever this says. Empty or 0 means any score. |
| Send again if nobody picks it up in time | On for new rules. A finding still open and unassigned past its due time is sent once more, its title starting "Unassigned and late:". Signalith checks every minute. |
| Include sample data (More options) | Findings from the one-click sample data are skipped unless this is on. Turn it on to try a channel with sample data. |
| On | A rule that is off sends nothing |
The dialog shows a plain-English summary of the rule as you change it.
What gets sent:
- Only new findings are sent, plus, for rules that ask, a finding nobody picked up by its due time, once. A rule sends findings raised after it was added or last turned on, so a new rule does not send old findings. If no server ran the job for a while (a restart, or the background jobs moving to another server), the findings raised meanwhile are still sent, up to 24 hours back.
- Each finding goes to each channel once, even when several rules match it, and even when a playbook also sends it there.
- The channels in one rule all get the finding.
- Flood guard: if one pass would send more than 10 messages to a channel, Signalith sends the 9 most urgent and then one summary, such as "And 23 more new findings", with a link to the Findings page.
- Messages link to
server.public_url+/#findings. Whenserver.public_urlis not set, messages have no link, and the page says so. Set it on the Settings page.
When you delete a channel, it is taken out of its rules. A rule left with no channel is turned off.
From a detection¶
Each detection on the Detections page has a Notifications section (admins see it). It lists the rules that send that detection's findings, and where to, or says that nobody is told. Notify me when it fires opens a new rule for just that detection, set to send its findings whatever their urgency. With no channel yet, Signalith asks for one first, starting with email, then opens the rule.
Text messages and phones¶
Signalith does not send SMS itself. To get alerts on a phone:
- Use the Slack or Teams mobile app, whose push notifications reach the phone, or an email channel to an address the phone gets.
- For texts and calls with on-call schedules and escalation, send a webhook to a paging service that accepts one, or point an email channel at the paging service's email intake address.
Email-to-text gateway addresses from mobile carriers are not a good choice: several carriers have stopped running them, and the rest may drop or delay messages.
Audit alerts¶
Audit alerts tell admins about Signalith itself: who signs in to admin accounts, failed sign-ins and lockouts, changes to users, tenants, tokens and settings, deletions, and audit records that were lost. They come from Signalith's audit records, not from detections. Each one is built in and off until you turn it on and pick its channels, in the Audit alerts card on the Notifications page.
| Audit alert | Urgency | Sent when |
|---|---|---|
| Audit records lost or settings tampered with | Critical | Audit records could not be kept (an audit.lost record), a response action's audit record could not be written, or shared settings, the cluster document or a sign-in session were changed in OpenSearch outside Signalith |
| Built-in admin signs in | High | Someone signs in as the built-in admin |
| Sign-ins locked out | High | Wrong passwords or codes lock an account, or pause sign-ins from one address |
| Users, roles and two-step sign-in change | High | A user is added, changed, turned off or on, or deleted; a role changes; a password is reset; two-step sign-in or passkeys are turned off or reset; the directory settings change |
| Tenants change | High | A tenant is added, renamed, turned off or on |
| Tokens made or revoked | Medium | An API, agent, SCIM, metrics scrape or cluster join token is made or revoked |
| Settings change | Medium | Settings, notifications, retention, ticketing, agent collection, endpoint or vulnerability scan settings are saved, or the cluster's key or certificate authority is changed |
| Deletions | Medium | A detection, lookup table, threat intel feed or indicator, custom parser, content update, endpoint, server, notebook or case file is deleted, sample data is removed, or a retention run is started by hand |
| An admin signs in | Medium | Someone with the admin role signs in (other than the built-in admin) |
| Failed sign-ins and refused tokens | Low | Every wrong password or code, failed single sign-on, and refused API, SCIM or agent token |
A good start is the first five, sent to the channel your security team watches. Failed sign-ins and refused tokens is marked Noisy: on a server the internet can reach it can send many messages. Sign-ins locked out tells you about guessing with far fewer.
What gets sent:
- Only what happens after an alert is turned on. Each audit record goes to each channel once, even when it matches two alerts (it is sent as the first one in the table).
- A message says what happened, which alert matched, who did it, from which address, what it
was done to, the server, the tenant and, for a failed sign-in, why. It never holds the
rest of the audit record. It links to the Audit page (
server.public_url+/#audit). - The name in a failed sign-in is whatever was typed, which may be a password typed in the wrong box. It is sent only when it is an account Signalith knows; otherwise the message says "(not a known account)" and gives the address it came from.
- A failed single sign-on that names no user says only the sign-in page's code for it
(
denied,expired, ...): the rest may be text the sender chose, and stays in the audit log. Such failures are written to the audit log at most once a minute for each address, an IPv6 /64 counting as one (the record counts those since, asfailures), and 60 times a minute in all, and not at all while single sign-on is off. When the total leaves records out, one record ("audit records left out") says how many. Failed password sign-ins and refused SCIM tokens and scrapes are limited the same way (see Failed sign-in limits). - The flood guard, retries and Recent deliveries work as for findings, except that the first message of each alert is sent on its own before a second of any, and a summary names the alerts it stands for: "And 12 more audit alerts: Sign-ins locked out (10), Tokens made or revoked (2)".
- Turning alerts off is itself announced. When a save turns an audit alert off, takes a channel off it, removes the channel or changes the address the channel sends to, that channel gets one last critical message first, at its old address: what was taken away, who did it and from where. The save goes on even when that message cannot be delivered.
- The most urgent alerts are read first, each on its own, so many failed sign-ins never hold
up or push out a record another alert is about. When more audit records arrive than
Signalith can look at (more than 2,000 for one alert in a pass, or more than 5,000 waiting
on a server of its own, where the least urgent are let go first), the server log, the
Health page and
GET /api/notify(audit_warning) say so. - A record that reaches a cluster's audit indices late (its server could not reach OpenSearch for a while) is still sent, within about ten minutes of arriving, if it was logged in the last 24 hours.
- Audit alerts never become findings, so audit records stay out of the Findings page, of search, and of everyone but admins. A tenant's admins do not see the Audit alerts card: the audit records are the provider's. Records about a tenant carry its ID.
Where the records come from: once servers share one OpenSearch as a cluster, audit records are kept there, and the server that runs the background jobs sends alerts about every server's records. On a server of its own, audit records are only in its log, so it alerts on the records it logs while it runs: a record logged before a restart, while the server was stopped, is not sent.
Audit alerts trust the audit records as the Audit page does: someone who can write to the audit indices in OpenSearch directly could add records that look real. Keep OpenSearch credentials to Signalith's own accounts, and use Check integrity on the Audit page to find records that were not signed by a Signalith server.
A webhook gets "type": "audit" and an audit object instead of finding:
{
"version": 1,
"type": "audit",
"sent": "2026-11-01T09:30:02Z",
"audit": {
"id": "7f3c9a1b2d4e5f6a7b8c9d0e",
"alert": "Built-in admin signs in",
"title": "Built-in admin signs in: signed in",
"urgency": "high",
"action": "",
"user": "admin",
"source_ip": "203.0.113.7",
"target": "",
"server": "siem-1",
"tenant": "",
"reason": "",
"time": "2026-11-01T09:30:01Z",
"link": "https://siem.example.com/#audit"
}
}
A summary of audit alerts has "type": "audit_summary" and a summary object.
Send a test¶
Each channel card has Send test, and so does the channel dialog. A test message is
marked as a test, as in the webhook example below ("type": "test"). Tests are listed under
Recent deliveries like other messages. The card then shows "Test delivered 2m ago", or
the error.
Tests are sent from the server that runs the background jobs. On any other server the button is not shown (see below).
Recent deliveries and failures¶
Recent deliveries lists the latest messages: the finding, the channel, the status and when it was sent. Deliveries are kept for 30 days.
- Sent: the receiver accepted it. "on try 3" means earlier tries failed.
- Retrying: the send failed in a way that may pass, such as a timeout, a 5xx or 429 answer, or a temporary 4xx mail error. Signalith tries again after 1, 5, 15 and 60 minutes, so there are 5 tries in all.
- Failed: Signalith gave up. Some failures are not retried, because sending again would fail the same way: a refused address, a redirect to another server, a 4xx answer other than 408 and 429, or a permanent 5xx mail error.
Each channel card shows its last delivery. When a channel's last message failed, the Health page warns: "Notifications to Slack #soc are failing."
Errors never show a channel's secrets. The URL's token, header values, the signing secret
and the password are replaced with ***.
Which server sends¶
When several servers share one OpenSearch, only the server that holds the background
jobs sends notifications. This is the same server that runs detections (see
Servers). It runs the notifications job every 15 seconds.
- Channels and rules live in that server's notifications file. On other servers the page shows them but cannot change them, and it names the server to use. If the jobs move to a server whose notifications file differs, the Servers page says so, as it does for the other settings files. Copy the file to every server that may run the jobs.
- Before it sends, the job claims each message by creating a record in OpenSearch (the
<prefix>_notificationsindex). The record's ID is made from the finding and the channel, so it is the same on every server. Only one server can create it, so only one server sends, even right after the jobs move. - If a server stops while sending, its message may or may not have arrived. Signalith does not send it again, since it would rather miss one than send it twice. After 5 minutes the delivery is marked failed: "The server stopped while sending this message; it may not have arrived."
- The job checks that this server still holds the jobs before each send.
- With
detections.scheduler: falseon every server, nothing is sent.
Where the settings live¶
Channels and rules are kept in notifications.yaml in the lookups folder (setting
notify.file, environment SIGNALITH_NOTIFY_FILE; a relative path is relative to the
config file). The server writes the file with mode 0600. Every secret in it is encrypted
with the master key (enc:v1:...): webhook URLs, header values, signing secrets, Teams app
client secrets and email passwords. signalith secrets status, encrypt, rotate-master and the Security page
cover it, like the other settings files. Edit it on the page rather than by hand. A plain value
typed into the file still works, and it is encrypted the next time the page saves the file
or signalith secrets encrypt runs.
If the file cannot be read, nothing is sent, and the page shows the error. If a secret cannot be decrypted, for example after the master key is lost, that channel sends nothing. Its card says which secret to enter again.
The webhook body¶
Every webhook POST has Content-Type: application/json, User-Agent: Signalith and, when
the channel has a signing secret, X-Signalith-Signature. The body is version 1.
A finding:
{
"version": 1,
"type": "finding",
"sent": "2026-10-13T09:15:02Z",
"finding": {
"id": "f7c1e0a2b9d84d1c",
"title": "Brute force against admin from 203.0.113.9",
"urgency": "high",
"severity": "medium",
"detection": "brute_force",
"mitre": ["T1110"],
"entities": {"user": "admin", "host": "web-01", "src": "203.0.113.9"},
"risk_score": null,
"created": "2026-10-13T09:14:51Z",
"link": "https://siem.example.com/#findings",
"sample": false,
"credit": ""
}
}
| Field | Meaning |
|---|---|
version |
The body's version. It stays 1 while fields are only added; a change that breaks receivers would be 2. |
type |
finding, summary (flood guard) or test |
sent |
When this message was sent (UTC). A receiver can refuse old ones. |
finding.id |
The finding's ID in Signalith |
finding.urgency |
critical, high, medium, low or informational: the urgency the rule matched on. severity is the detection's own. |
finding.detection |
The detection's ID |
finding.mitre |
ATT&CK technique IDs; may be empty ([]) |
finding.entities |
Any of user, host, src and dest; may be empty ({}) |
finding.risk_score |
A number for findings of risk detections, else null |
finding.link |
server.public_url + /#findings, or empty when that is not set |
finding.sample |
true for a finding from sample data |
finding.credit |
For a rule from a content pack, its author and licence, as in Rule by Florian Roth, from SigmaHQ community rules (DRL-1.1, ...); empty for built-in rules. Email, Slack and Teams messages show it as a line of their own. |
finding.late |
true when the finding is sent again because nobody picked it up by its due time; left out otherwise |
A flood guard summary:
{
"version": 1,
"type": "summary",
"sent": "2026-10-13T09:15:02Z",
"summary": {"count": 23, "text": "And 23 more new findings", "link": "https://siem.example.com/#findings"}
}
A test has "type": "test" and a finding with the ID test, the title "Test message from
Signalith", and made-up entities.
Receivers should ignore fields they do not know, so new fields can be added to version 1.
Checking the signature¶
With a signing secret, each POST has:
Compute the HMAC over the raw bytes of the body as received, before parsing the JSON.
Compare the values in constant time. Also check sent, so an old message cannot be
replayed; allowing five minutes is plenty.
Python:
import hashlib, hmac, json, time
from datetime import datetime
def verify(secret: str, body: bytes, header: str) -> dict:
want = "sha256=" + hmac.new(secret.encode(), body, hashlib.sha256).hexdigest()
if not hmac.compare_digest(want, header or ""):
raise ValueError("bad signature")
msg = json.loads(body)
sent = datetime.fromisoformat(msg["sent"].replace("Z", "+00:00")).timestamp()
if abs(time.time() - sent) > 300:
raise ValueError("too old")
return msg
Go:
func verify(secret string, body []byte, header string) bool {
mac := hmac.New(sha256.New, []byte(secret))
mac.Write(body)
want := "sha256=" + hex.EncodeToString(mac.Sum(nil))
return hmac.Equal([]byte(want), []byte(header))
}
Node.js:
const crypto = require('crypto');
function verify(secret, rawBody, header) {
const want = 'sha256=' + crypto.createHmac('sha256', secret).update(rawBody).digest('hex');
return header && want.length === header.length && crypto.timingSafeEqual(Buffer.from(want), Buffer.from(header));
}
API¶
Every /api/notify route is for admins.
| Route | What it does |
|---|---|
GET /api/notify |
Channels, rules and the page's details: each channel without its secrets (url_set, password_set, signing_secret_set, header names only), its last delivery and the rules that use it; each rule with its summary; revision, file, manage (whether this server can change them) and file_error; and, except on a tenant's server, audit_alerts (each built-in audit alert with enabled and channels) and audit_from (cluster or server) |
PUT /api/notify |
Replaces channels and rules with the body (revision, channels, rules, and audit_alerts: a list of {id, enabled, channels}; left out, the saved audit alerts are kept). A secret left empty keeps its saved value; clear_password, clear_signing_secret and a header with clear remove one. A secret must be typed again when a channel's URL or mail server moves to another server. A body with problems is refused with 400 and problems (where, field, message). A stale revision, or another server running the jobs, gives 409. |
POST /api/notify/test |
Sends a test message: {"id": "<channel id>"} for a saved channel, or {"channel": {...}} for a channel being edited. Its empty secrets are the saved ones. Answers {ok, duration_ms, error}. |
GET /api/notify/deliveries?limit=50 |
The latest deliveries, newest first (at most 500) |
GET /api/notify/channels/{id}/teams-app |
The Teams app package (a zip) of a Teams app channel |
POST /api/notify/channels/{id}/teams-move |
Confirms a move to another Teams channel an admin asked for in Teams ({"move_id": "..."}, from the channel's move_id). Asks for the password again. |
DELETE /api/notify/channels/{id}/teams-move |
Declines that move |
Channels with buttons also have interactive, chat_url (where Slack or Teams sends
clicks), approve_in_chat, and for a Teams app channel app_id, tenant_id,
app_password_set, posts_to and, when a move waits, move_to, move_id and move_by.
The chat routes:
| Route | Who | What it does |
|---|---|---|
POST /api/chat/slack/{channel} |
Slack (signed) | Takes a button click from Slack |
POST /api/chat/teams/{channel} |
Teams (Bot Framework token) | Takes a button click or message from Teams |
POST /api/chat/link/check |
Any user | Says which chat account a link ({"token": "..."}) would link |
POST /api/chat/link |
Any user, password again | Links that chat account to the signed-in user |
POST /api/chat/code |
Any user, password again | Makes a code to send to the Teams app ({code, minutes}) |
GET /api/chat/accounts, DELETE /api/chat/accounts/{id} |
Any user | The signed-in user's linked chat accounts |
GET /api/chat/links, DELETE /api/chat/links/{id} |
Admins | Every linked chat account |