Skip to content
Webhooks

When it needs a closer look, you hear first

Point Auscultare at a URL, a Slack channel or a Discord channel and pick the events. Every JSON delivery is signed, retried and logged.

Auscultarescan.flagged09:41

Interview, take 2Reads as AI-generated speechThe answer is for the whole recording and is evidence for a closer look, not proof.Open the resultWhat an answer cannot tell
How a flagged answer reads in a chat channel (illustration).

In short

Add an endpoint in the app (Integrations), choose events such as scan.flagged, live.alert or watch.hit, and Auscultare posts to it. JSON deliveries carry an Auscultare-Signature header: an HMAC-SHA256 of the timestamp and the raw body with your endpoint’s secret. Answer 2xx within 10 seconds; failures are retried.

Three formats

Three formats
FormatURLWhat it does
jsonAny https URL (no private addresses)Our signed JSON envelope, to any https URL of yours.
slackA Slack incoming webhook on hooks.slack.comA short message with the title, the answer, the time and a link.
discordA Discord webhook on discord.com or discordapp.comA short message with an embed: the same as Slack.

Events

Slack and Discord endpoints send only flagged answers by default; JSON endpoints send every event you picked.

Events
EventWhen
scan.completedEvery finished scan of the workspace: app, API, extension and Watch.
scan.flaggedA finished scan whose answer is not original: AI-generated, rebuilt, or can’t tell which.
live.alertA live session’s rolling answer turned not original: browser, API stream, extension or phone call.
live.endedA live session ended, with its summary.
watch.hitA podcast episode or monitored file a Watch source found reads as not original.
watch.errorA Watch source failed 3 checks in a row and is paused.
ping“Send test” posts a ping event, signed like the others.

The envelope

event names the event. data carries the scan (as in a History row, without the file name), the live session and alert, or the Watch source and item (their host only), plus answer in words, note (the answer is for the whole recording), url (the result in the app) and limits (what an answer cannot tell).

Headers

  • Auscultare-Event: the event’s name.
  • Auscultare-Delivery: the delivery’s id, the same on every retry. De-duplicate on it.
  • Auscultare-Signature: t= the Unix time, v1= the hex HMAC-SHA256 of the time, a dot and the raw body, with your secret.

Example · scan.flagged

{
  "id": "3e1f9a2b-6c4d-4e8f-b0a1-c2d3e4f5a6b7",
  "event": "scan.flagged",
  "createdAt": "2026-12-02T09:41:12.904Z",
  "workspaceId": "64f1c0de9a8b7c6d5e4f3a2b",
  "data": {
    "scan": {
      "id": "6f0c2d8e-4b1a-4c5e-9d3f-2a7b8c9d0e1f",
      "status": "completed",
      "stage": null,
      "origin": "api",
      "createdAt": "2026-12-02T09:41:07.212Z",
      "title": "Interview, take 2",
      "titleSource": "user",
      "recordingSource": "upload",
      "durationSec": 41.6,
      "label": "ai_generated",
      "inconclusiveReason": null,
      "signal": 0.91,
      "miniPeaks": [0.02, 0.18, 0.41, 0.37, 0.52, 0.33, 0.08],
      "miniSignals": [null, 0.62, 0.88, 0.41, 0.93, 0.9, null],
      "audioAvailable": true,
      "share": null,
      "demo": false
    },
    "answer": "Reads as AI-generated speech",
    "note": "The answer is for the whole recording and is evidence for a closer look, not proof.",
    "url": "https://auscultare.io/app/scans/6f0c2d8e-4b1a-4c5e-9d3f-2a7b8c9d0e1f",
    "limits": "https://auscultare.io/accuracy"
  }
}

Check the signature

Compute the HMAC over the raw bytes you received (before any JSON parsing), compare in constant time, and refuse timestamps more than 5 minutes away. The secret (whsec_…) is shown once, when you add the endpoint.

webhook.mjs · npm install express

import express from 'express';
import { createHmac, timingSafeEqual } from 'node:crypto';

const SECRET = process.env.AUSCULTARE_WEBHOOK_SECRET; // whsec_…, shown once when you add the endpoint
const TOLERANCE_SEC = 300; // refuse anything older than 5 minutes

function verify(rawBody, header = '') {
  const parts = Object.fromEntries(header.split(',').map((p) => p.trim().split('=')));
  const t = Number(parts.t);
  if (!Number.isInteger(t) || !parts.v1) return false;
  if (Math.abs(Date.now() / 1000 - t) > TOLERANCE_SEC) return false;
  const expected = createHmac('sha256', SECRET).update(`${t}.`).update(rawBody).digest();
  const given = Buffer.from(parts.v1, 'hex');
  return given.length === expected.length && timingSafeEqual(given, expected);
}

const seen = new Set(); // use your database in production
const app = express();

// The signature covers the raw bytes: keep the body raw, parse it after the check.
app.post('/hooks/auscultare', express.raw({ type: 'application/json' }), (req, res) => {
  if (!verify(req.body, req.get('Auscultare-Signature'))) return res.sendStatus(400);
  const delivery = req.get('Auscultare-Delivery'); // the same on every retry
  if (seen.has(delivery)) return res.sendStatus(204);
  seen.add(delivery);

  const { event, data } = JSON.parse(req.body.toString('utf8'));
  if (event === 'scan.flagged' || event === 'watch.hit') console.log(`${data.scan.title}: ${data.answer}`, data.url);
  if (event === 'live.alert') console.log(`Live, ${data.session.title} at ${data.alert.at} s: ${data.answer}`, data.url);

  res.sendStatus(204); // answer within 10 s; do slow work after answering
});

app.listen(3000);

Delivery and retries

  • Answer with any 2xx within 10 seconds. Do slow work after answering.
  • A failed delivery is tried again after 1 min, 5 min, 30 min, 2 h, 12 h.
  • After 20 failed deliveries in a row the endpoint is turned off; turn it on again in the app.
  • Every delivery and its answer’s status are in the app’s delivery log.
  • “Send test” posts a ping event, signed like the others.
  • Up to 10 endpoints per workspace.

Prefer to poll?

Every event is also kept for 30 days in an event feed, whether or not you have a webhook: GET /api/v1/events?after=…&types=…, oldest first, up to 500 a page. Handy for security tools that collect events on their own schedule.

curl
# Oldest first. Keep the last item's id and pass it as "after" next time.
curl -sS "https://auscultare.io/api/v1/events?types=scan.flagged,live.alert,watch.hit&limit=100" \
  -H "Authorization: Bearer $AUSCULTARE_KEY"
curl -sS "https://auscultare.io/api/v1/events?after=$LAST_EVENT_ID&types=scan.flagged,live.alert,watch.hit" \
  -H "Authorization: Bearer $AUSCULTARE_KEY"

What a message carries

Slack and Discord messages carry only the title, the answer, the time and a link to the result. JSON deliveries carry your workspace’s scan summary without the file name; a title made from a file name becomes “Untitled recording”, and Watch sources show their host only. No message ever carries audio or the recording’s link, and every one says the answer is for the whole recording.

Webhooks are on Free, Pro, and Enterprise.