Signet

Webhooks

Signet posts a signed event to your HTTPS endpoint when something needs attention.

Register an endpoint

curl -X PUT https://signetsentry.com/v1/webhook \
  -H "Authorization: Bearer $SIGNET_SECRET_KEY" -H "Content-Type: application/json" \
  -d '{"url":"https://example.com/hooks/signet","events":["review","deny"]}'
# -> {"signing_secret":"whsec_..."}   (shown once; add "rotate_secret": true to rotate)
curl -X POST https://signetsentry.com/v1/webhook/test -H "Authorization: Bearer $SIGNET_SECRET_KEY"

What arrives

{
  "id": "evt_8f2c1a...",
  "type": "assessment.deny",
  "created_at": "2026-11-19T15:04:05Z",
  "test": false,
  "data": {
    "session_id": "s_...", "visitor_id": "v_...", "account_id": "e_...", "event_type": "PAYMENT",
    "decision": "deny", "risk_score": 100, "profile": "default",
    "reason_codes": ["IP_TOR_EXIT", "DEVICE_WEBDRIVER"],
    "summary": "Deny: ...", "explanation": ["...", "..."]
  }
}
DeliveryRule
HeadersX-Signet-Signature: t=<unix>,v1=<hex>, X-Signet-Event, X-Signet-Delivery
SuccessAny 2xx. Failures are retried twice, after about 5 s and 30 s.
DuplicatesPossible. Make your handler idempotent on id.
TargetA public HTTPS URL.
PlanAny.

Verify the signature

v1 is the hex HMAC-SHA256 of "<t>.<raw request body>", keyed with your signing secret.

Use the raw bytes, compare in constant time and reject old timestamps. The server SDKs do this for you.

import crypto from "node:crypto";
app.post("/hooks/signet", express.raw({ type: "application/json" }), (req, res) => {
  const parts = Object.fromEntries(req.get("X-Signet-Signature").split(",").map(p => p.split("=")));
  const expected = crypto.createHmac("sha256", process.env.SIGNET_WEBHOOK_SECRET)
                         .update(`${parts.t}.${req.body}`).digest("hex");
  const fresh = Math.abs(Date.now() / 1000 - Number(parts.t)) < 300;
  const ok = fresh && expected.length === parts.v1.length &&
             crypto.timingSafeEqual(Buffer.from(expected), Buffer.from(parts.v1));
  if (!ok) return res.sendStatus(400);
  const event = JSON.parse(req.body);   // handle event.type, event.data ...
  res.sendStatus(200);
});
static bool Verify(string signatureHeader, string rawBody, string secret)
{
    var p = signatureHeader.Split(',').Select(x => x.Split('=', 2)).ToDictionary(x => x[0], x => x[1]);
    var mac = new HMACSHA256(Encoding.UTF8.GetBytes(secret))
        .ComputeHash(Encoding.UTF8.GetBytes($"{p["t"]}.{rawBody}"));
    var fresh = Math.Abs(DateTimeOffset.UtcNow.ToUnixTimeSeconds() - long.Parse(p["t"])) < 300;
    return fresh && CryptographicOperations.FixedTimeEquals(Convert.FromHexString(p["v1"]), mac);
}

Event types

Every webhook gets every event except the first and last rows, which follow your events list (default review and deny).

EventWhen
assessment.review, assessment.deny, assessment.allowAn assessment ends with that decision, if it is in events.
account.quota_warning, account.quota_reached80%, then 100%, of the month’s assessments are used. Once each per month. data: plan, used, quota, percent, resets_at, upgrade_url, message.
account.new_deviceA Trusted Devices account was checked on a device it has not trusted.
verification.completed, verification.reviewed, verification.expired, verification.retriedAn ID verification was decided, reviewed by your team, ran out, or was retried. Payload
customer.status_changed, customer.risk_changed, customer.review_dueA status or risk rating changed, or a review fell due. Never personal data. Payload
bank.link.verified, bank.link.failedA micro-deposit link was confirmed or failed. Payload
transaction_alert.openedTransaction Monitoring opened an alert. data: alert_id, customer, transaction_id, external_id, decision, risk_score, reason_codes.
workflow.completed, workflow.abandonedA customer finished a workflow, or opened it and did not finish in 24 hours. A session from a start link has its link_id. Payload
pause.shown, pause.answeredA workflow asked a customer for a second thought about a payment, and what they chose. Payload
recovery.completed, recovery.revokedA recovery ended, or a reviewer took back the ID approval it rested on. Payload
photo_proof.completed, photo_proof.expiredA photo proof was decided, or its link ran out. Payload
imprint.enrolled, imprint.checked, imprint.factor_addedAn imprint was made, checked, or gained a factor. Never a template.
decoy.hitA decoy was used. data: decoy_id, kind, label, session_id, visitor_id, ip, at. Never the value.
log.checkpointA day of the decision log was sealed. Payload
account.trial_endingThree days before a free month ends. data: plan, ends_at, then_price_usd, then_interval, manage_url, message.
report.weeklyMondays from 06:00 UTC, if it is in events. Payload

For the weekly summary too, send "events": ["review", "deny", "report.weekly"].