# Webhooks

Sayli pushes events to your systems, signed, so you can build on top of the call

* * *

Receive events at an HTTPS endpoint you control when a brief is ready or an MCP tool is called. Verify each request before processing it.

Webhooks are on the Team plan and up.

## Events, pushed to you

You give Sayli an HTTPS endpoint. When something happens on a call, Sayli sends a signed POST to that endpoint. You decide what to do with it: file a ticket, post to a channel, update a record.

**Use a public HTTPS endpoint**

Endpoints must be public HTTPS URLs. Sayli checks the address before sending and will not deliver to internal or private network addresses.

## What we emit

Two events are live today.

**brief.generated**

A meeting brief is ready, with the headline, summary, and action items.

**mcp.tool\_called**

Your inbound MCP server answered a tool call from a connected AI client.

More events are planned, including `meeting.started`, `meeting.ended`, and `action_item.created`. They are not sent yet. Subscribing to them today does nothing until they ship, and shipped events are announced in the [changelog](https://docs.sayli.ai/changelog/).

## The delivery

Every delivery is a POST with `Content-Type: application/json` and a `sayli-webhook/1.0` user agent, plus these headers:

**Sayli-Event**

The event name, like `brief.generated`.

**Sayli-Timestamp**

Unix seconds when the delivery was signed.

**Sayli-Signature**

Hex HMAC-SHA256 of the timestamp and body. See below.

**Sayli-Delivery-Id**

A unique id for this delivery, useful for idempotency and support.

The body always has the same three fields: the event name, when it happened, and the event's data.

```json
{
  "event": "brief.generated",
  "occurred_at": "2026-06-29T15:42:10.482910+00:00",
  "data": {
    "meeting_id": "0d9e07a2-5b1f-4c8e-9f3a-2f6d1c8b4a70",
    "title": "Weekly pipeline review",
    "headline": "Renewal is on track, security review is the open risk",
    "summary": "…",
    "action_items": [
      {
        "text": "Send the SOC 2 report to Dana",
        "owner": "You",
        "due": "end of week",
        "due_date": "2026-07-03",
        "confidence": "high"
      }
    ],
    "confidence": "high"
  }
}
```

Two shapes are worth reading twice, because guessing them wrong is the usual integration bug. **Action items are objects, never strings**: each carries `text`, `owner`, `due` as the phrase that was said, `due_date` as a real `YYYY-MM-DD` or empty, and its own `confidence`. **Confidence is a string**, one of `high`, `medium` or `low`, on both the brief and each item; anything else is coerced to `medium` before the brief is saved, so you will never see a number.

## Verify the signature

The signature covers the timestamp and the raw body, joined by a dot: `HMAC-SHA256(secret, "{Sayli-Timestamp}.{body}")`, hex-encoded, in the `Sayli-Signature` header. Signing the timestamp lets you reject replays, not just tampering.

To verify a delivery:

1.  Read the raw request body before parsing any JSON.
2.  Compute the HMAC over `timestamp + "." + body` with your endpoint's secret.
3.  Compare against `Sayli-Signature` with a constant-time comparison.
4.  Reject the delivery if the timestamp is older than your replay window.

```python
import hashlib
import hmac
import time

def verify(headers, raw_body: bytes, secret: str) -> bool:
    timestamp = headers.get("Sayli-Timestamp", "")
    signature = headers.get("Sayli-Signature", "")
    try:
        signed_at = int(timestamp)
    except (TypeError, ValueError):
        return False
    if not isinstance(signature, str):
        return False
    signed = timestamp.encode() + b"." + raw_body
    expected = hmac.new(secret.encode(), signed, hashlib.sha256).hexdigest()
    if not hmac.compare_digest(expected, signature):
        return False
    return abs(time.time() - signed_at) <= 300  # 5 minute replay window
```

**Reject anything that does not match**

Treat a missing or wrong signature as a request you did not send. Do not process the body.

## When deliveries fail

A delivery gets up to **three attempts**, with a backoff that starts at half a second and triples. Sayli retries a connection error or a 5xx. It does not retry a 4xx, because a rejected body will be rejected again.

**So build your endpoint to expect duplicates.** A slow or flapping receiver that eventually succeeds may have already processed the first attempt. `Sayli-Delivery-Id` is stable across the retries of one delivery, so key your idempotency on it. Sayli waits up to 8 seconds per attempt.

After 10 failures in a row, Sayli disables the endpoint automatically so events stop piling up against a dead URL. Re-enable it with the API, by patching the endpoint back to active: there is no webhook screen in the desktop app today, so the API is the way in and out. Anything a webhook tells you can also be read back from the API, so a missed `brief.generated` is recoverable by fetching the brief.

**Return fast**

Verify the signature and durably accept the event before returning a 2xx. Then do the slow work in the background. A response that beats the 8 second window is a delivery that counts.

## Next steps

**[Personal access tokens](https://docs.sayli.ai/integrations/personal-access-tokens/)**

Authenticate your own calls to Sayli.

**[MCP server](https://docs.sayli.ai/integrations/mcp-server/)**

Let an AI client you already use read your meetings.

Source: https://docs.sayli.ai/integrations/webhooks/
