Webhooks

Nullnote sends an HTTPS request to your server when something happens to a recording in a workspace.

Add a webhook#

In Settings › Developers, choose Add a webhook, enter a public https URL and pick the events. Or use the API with a key or token that has the webhooks scope:

shell
curl -X POST "https://nullnote-api.nullside.workers.dev/v1/developer/webhooks" \
  -H "Authorization: Bearer nnk_…" \
  -H "Content-Type: application/json" \
  -d '{ "url": "https://example.com/nullnote", "events": ["notes.ready"], "description": "Wiki sync" }'

The answer includes the signing secret (whsec_…), once. Each person can have up to 10 webhooks per workspace. Private, loopback and link-local addresses aren’t allowed.

Events#

EventWhen
recording.createdA recording was added to the workspace.
recording.transcribedThe cloud transcript is ready.
notes.readyThe AI notes are ready.
recording.trashedA recording was moved to the Trash.
recording.deletedA recording was deleted for good.
pingYou chose Send a test, or called POST /v1/developer/webhooks/:id/test.

Events cover every recording in the workspace that the webhook’s owner can see.

The payload#

json
{
  "id": "evt_…",
  "type": "notes.ready",
  "createdAt": "2026-11-16T15:04:05.000Z",
  "workspaceId": "…",
  "data": {
    "recording": {
      "id": "…",
      "title": "Weekly product sync",
      "createdAt": "2026-11-16T14:30:00.000Z",
      "duration": 1843.2,
      "source": "meeting",
      "folderId": null,
      "url": "https://…/recordings/…"
    }
  }
}

The payload is small on purpose. Fetch the full recording, with its transcript and notes, from GET /v1/recordings/:id.

Verify the signature#

Every request has a Nullnote-Signature header:

text
Nullnote-Signature: t=1763305445,v1=5f2b…

v1 is the hex HMAC-SHA256 of "<t>.<raw body>", keyed with your whole signing secret, whsec_ included. Check it against the raw bytes of the body, before parsing the JSON, and reject requests whose t is more than 5 minutes old.

Node.js (Express)
import crypto from 'node:crypto'
import express from 'express'

const secret = process.env.NULLNOTE_WEBHOOK_SECRET // "whsec_…"

function verify(rawBody, header) {
  const parts = Object.fromEntries((header ?? '').split(',').map((p) => {
    const i = p.indexOf('=')
    return [p.slice(0, i).trim(), p.slice(i + 1).trim()]
  }))
  const t = Number(parts.t)
  if (!Number.isInteger(t) || Math.abs(Date.now() / 1000 - t) > 300) return false
  const expected = crypto.createHmac('sha256', secret).update(`${t}.`).update(rawBody).digest()
  const given = Buffer.from(parts.v1 ?? '', 'hex')
  return given.length === expected.length && crypto.timingSafeEqual(given, expected)
}

const app = express()
app.post('/nullnote', express.raw({ type: 'application/json' }), (req, res) => {
  if (!verify(req.body, req.get('Nullnote-Signature'))) return res.sendStatus(400)
  const event = JSON.parse(req.body.toString('utf8'))
  res.sendStatus(204) // Answer quickly, then do the work.
  handle(event)
})
Python (Flask)
import hashlib
import hmac
import json
import os
import time

from flask import Flask, abort, request

SECRET = os.environ["NULLNOTE_WEBHOOK_SECRET"].encode()  # b"whsec_..."


def verify(raw_body: bytes, header: str | None) -> bool:
    parts = dict(p.strip().split("=", 1) for p in (header or "").split(",") if "=" in p)
    try:
        t = int(parts["t"])
    except (KeyError, ValueError):
        return False
    if abs(time.time() - t) > 300:
        return False
    expected = hmac.new(SECRET, f"{t}.".encode() + raw_body, hashlib.sha256).hexdigest()
    return hmac.compare_digest(expected, parts.get("v1", ""))


app = Flask(__name__)


@app.post("/nullnote")
def nullnote():
    if not verify(request.get_data(), request.headers.get("Nullnote-Signature")):
        abort(400)
    event = json.loads(request.get_data())
    handle(event)
    return "", 204

Delivery and retries#

  • Any 2xx answer within 10 seconds counts as delivered.
  • Anything else is retried up to 5 times over about an hour. Use the event’s id to ignore repeats.
  • Events may arrive out of order. Use createdAt, or fetch the recording, to see its current state.
  • After 50 failures in a row, the webhook turns itself off and its owner is notified. Fix the server, then turn it back on in Settings.
  • Recent deliveries, with their status and timing, are in Settings › Developers, and at GET /v1/developer/webhooks/:id/deliveries.
If an admin turns off the API for the workspace, its webhooks pause until it’s turned back on.