Webhooks and events

Add an endpoint with POST /v1/webhooks or in your console. We POST one JSON event per call and expect a 2xx within 10 seconds. A failure is tried again after 1, 5 and 30 minutes, then hourly, for 24 hours. Every event is also in GET /v1/events.

{
  "id": "evt_…",
  "type": "audit.scan.completed",
  "created_at": "2026-11-10T09:58:12Z",
  "client_id": "cl_…",
  "data": {
    "audit_id": "aud_…",
    "scan_id": "scn_…",
    "site": "acme-tools.com",
    "status": "done",
    "score": 74,
    "pages_read": 412,
    "report_url": "/api/v1/audits/aud_…/scans/scn_…/report"
  }
}

Checking the signature

Header Amarkos-Signature: t=1762768692,v1=<hex>. v1 is HMAC-SHA256 of t + "." + the raw body with your webhook’s secret. Refuse it if t is more than 5 minutes old.

Node.js
import crypto from "node:crypto";

function verify(rawBody, header, secret) {
  const { t, v1 } = Object.fromEntries(header.split(",").map((p) => p.split("=")));
  if (Math.abs(Date.now() / 1000 - Number(t)) > 300) return false;
  const want = crypto.createHmac("sha256", secret).update(`${t}.${rawBody}`).digest("hex");
  return crypto.timingSafeEqual(Buffer.from(want), Buffer.from(v1));
}

Events

audit.scan.completedA scan finished. Carries scores and the report url.
audit.scan.failedA scan stopped with a reason.
links.plan.readyA research plan waits for approval.
links.email.needs_approvalA draft waits for you.
links.reply.receivedA site replied.
links.question.askedSomething only you can answer.
links.link.liveA link was placed and verified.
links.link.lostA live link went missing or changed.
mailbox.failedA mailbox stopped logging in.
credits.lowBalance fell under your low-balance mark.
credits.exhaustedCredits used up: new work answers 402, campaigns pause.