Webhooks
Send planner events to your own URL, Slack, Discord or ntfy, signed and retried.
Sevnly can send events to your own URL: Zapier, n8n, Home Assistant, Slack, Discord, ntfy or your own server. Set them up in Settings → Integrations → Webhooks, in a planner’s settings (its webhooks only), through the REST API (/v1/webhooks) or with the MCP tools list_webhooks / create_webhook (admin scope; the user confirms). The spec is PLAN.md §3.12.
Options
| Option | What it does |
|---|---|
| Name, URL | https:// only. Self-hosted instances can allow http:// and private addresses with ALLOW_HTTP_WEBHOOKS=true. |
| Planners | All your planners, or the ones you pick (you must be an owner or editor of each). Events only arrive while you’re a member. |
| Events | Tasks (task.created, task.updated, task.completed, task.uncompleted, task.moved, task.deleted), reminder.due (your own reminders), lists (list.created, list.renamed, list.deleted), planners (calendar.member_added, calendar.member_removed, calendar.role_changed), contributions (suggestion.created, suggestion.accepted, suggestion.declined, comment.created), attachments (attachment.added, attachment.deleted: name, kind, size, MIME type or URL, never the file), and day.summary: once a day at the time you choose (your time zone, from Settings → Notifications), { day, tasks: [{ taskId, calendarId, title, time?, done }] } for the planners the webhook covers. |
| Format | Standard JSON, or a readable line for Slack ({ "text" }), Discord ({ "content" }) or ntfy (plain text, Title / Tags headers). |
| Payload detail | Full (title, day, time, notes…) or Minimal (ids and dates only; fetch the rest through the API). |
| Payload encryption | Paste a public key (JWK, EC P-256) and the body is sent as a compact JWE (ECDH-ES+A256KW / A256GCM, content type application/jose). Standard JSON only. |
| Only my changes | Skip changes other people made in shared planners. |
| Include agent changes | Whether changes made by MCP agents count. |
Limits: 20 webhooks per person, 10 per planner.
The request
POST /your/path
content-type: application/json
webhook-id: msg_2b7c… (the same on every retry: use it to ignore duplicates)
webhook-timestamp: 1764600000 (seconds)
webhook-signature: v1,K5oZ…=
{ "type": "task.completed", "timestamp": "2026-12-01T09:30:00.000Z",
"data": { "taskId": "…", "title": "Dentist", "day": "2026-12-03", "done": true } }
Dates are local YYYY-MM-DD, like the API. Answer with any 2xx within 10 seconds. Redirects aren’t followed.
Verify the signature
It’s the Standard Webhooks scheme: HMAC-SHA256 over id.timestamp.body with your secret (the part after whsec_, base64-decoded). After you rotate the secret, the old one also signs for 24 hours, so webhook-signature can hold two space-separated values; accept the request if any matches. Reject timestamps more than 5 minutes off. Verify the signature, not IP addresses: requests may come from Cloudflare WARP, whose addresses are shared and change.
Node:
import { createHmac, timingSafeEqual } from "node:crypto";
export function verify(secret, headers, body) {
const id = headers["webhook-id"], ts = headers["webhook-timestamp"];
if (Math.abs(Date.now() / 1000 - Number(ts)) > 300) return false;
const key = Buffer.from(secret.replace(/^whsec_/, ""), "base64");
const want = createHmac("sha256", key).update(`${id}.${ts}.${body}`).digest();
return headers["webhook-signature"].split(" ").some((s) => {
const got = Buffer.from(s.replace(/^v1,/, ""), "base64");
return got.length === want.length && timingSafeEqual(got, want);
});
}
Python:
import base64, hashlib, hmac, time
def verify(secret: str, headers: dict, body: bytes) -> bool:
msg_id, ts = headers["webhook-id"], headers["webhook-timestamp"]
if abs(time.time() - int(ts)) > 300:
return False
key = base64.b64decode(secret.removeprefix("whsec_"))
want = hmac.new(key, f"{msg_id}.{ts}.".encode() + body, hashlib.sha256).digest()
return any(
hmac.compare_digest(base64.b64decode(s.removeprefix("v1,")), want)
for s in headers["webhook-signature"].split(" ")
)
Go:
func Verify(secret string, h http.Header, body []byte) bool {
id, ts := h.Get("webhook-id"), h.Get("webhook-timestamp")
t, err := strconv.ParseInt(ts, 10, 64)
if err != nil || math.Abs(float64(time.Now().Unix()-t)) > 300 {
return false
}
key, _ := base64.StdEncoding.DecodeString(strings.TrimPrefix(secret, "whsec_"))
mac := hmac.New(sha256.New, key)
mac.Write([]byte(id + "." + ts + "."))
mac.Write(body)
want := mac.Sum(nil)
for _, s := range strings.Split(h.Get("webhook-signature"), " ") {
got, err := base64.StdEncoding.DecodeString(strings.TrimPrefix(s, "v1,"))
if err == nil && hmac.Equal(got, want) {
return true
}
}
return false
}
The official Standard Webhooks libraries (standardwebhooks for Node, Python, Go and others) work too.
Retries and the log
A delivery that doesn’t get a 2xx is retried after 1 minute, 5 minutes, 30 minutes, 2 hours and 12 hours, then marked failed. After 20 deliveries in a row fail for good, the webhook turns itself off and you get an email; turning it back on resets the count. With WEBHOOK_EGRESS=warp, a WARP outage holds deliveries (it never sends directly) without using up retries.
Each webhook keeps a 7-day delivery log (event, status, HTTP code, time, the first 500 characters of the answer) with a Resend button, and Send test event sends a webhook.test event whatever the event list says.
Where events come from
Task and list events are found by comparing a planner before and after each save (the collab server saves 2 seconds after the last edit), so the app, REST, MCP and accepted suggestions all trigger them the same way, and a burst of edits is one event. “Who made it” comes from the task’s activity history, and so does “made by an agent”: MCP writes record the agent with each change. Member and suggestion events come from the audit log, comments and new suggestions from notifications, and reminder.due from the reminder job.
Was this helpful?