Summary: Workspace admins can enable HTTPS webhooks for renewal reminders, workflow changes, and completed vendor extractions. When a secret is configured, Contrax sends it as-is in the X-Contrax-Signature request header for simple origin checks. This is a shared secret, not an HMAC signature of the payload.

Contrax webhooks

Events use a versioned envelope under contrax.eventVersion and contrax.event. Scheduled reminder jobs run via Inngest (weekdays 9:00 Europe/Paris).

Event types

  • renewal.reminder / renewal.non_renewal_window — expiration or opt-out window (kind: expiration or non_renewal)
  • renewal.workflow_started / renewal.intent_changed / renewal.resolved / renewal.notice_recorded — workflow PATCH or notice proof on a contract
  • contract.analysis_completed — vendor PDF/Word extraction finished
  • vendor.dates_confirmed — vendor portal confirmation applied to the contract row (term end, notice, opt-out)
  • vendor.proactive_push — vendor workspace proactive date push (before buyer invite)
  • vendor.counter_proposal — vendor counter-proposal pending buyer review
  • portfolio.at_risk_count_changed — org-wide at-risk count changed (Slack, Teams, generic webhook when enabled)

Reminder payload

{
  "contrax": { "eventVersion": 1, "event": "renewal.reminder" },
  "organizationId": "<org id>",
  "contractId": "<contract id>",
  "contractNumber": "…",
  "message": "…",
  "daysUntil": 30,
  "kind": "expiration"
}

Workflow payload

{
  "contrax": { "eventVersion": 1, "event": "renewal.workflow_started" },
  "organizationId": "<org id>",
  "contractId": "<contract id>",
  "contractNumber": "…",
  "renewalWorkflowStatus": "in_progress",
  "renewalIntent": "negotiate",
  "message": "Renewal plan started for …"
}

Vendor dates confirmed payload

{
  "contrax": { "eventVersion": 1, "event": "vendor.dates_confirmed" },
  "organizationId": "<org id>",
  "contractId": "<contract id>",
  "contractNumber": "…",
  "confirmedDates": {
    "termEndDate": "2026-12-31",
    "noticeDays": 60,
    "optOutDeadline": "2026-10-31",
    "confirmedAt": "2026-06-17T12:00:00.000Z"
  },
  "message": "Vendor confirmed renewal dates for …"
}

Vendor proactive push

Vendors signed into the workspace can push dates via POST /api/vendor/dashboard/proactive using either an existing portal token or orgSlug + contractNumber when they already have a trusted relationship with that customer (prior portal link with the same email). Contrax may auto-create a portal access row when pushing by reference.

{
  "contrax": { "eventVersion": 1, "event": "vendor.proactive_push" },
  "organizationId": "<org id>",
  "contractId": "<contract id>",
  "contractNumber": "…",
  "confirmedDates": {
    "termEndDate": "2027-06-30",
    "noticeDays": 60,
    "proactive": true,
    "portalCreated": true
  },
  "message": "Vendor proactive push for …"
}

Analysis completed payload

{
  "contrax": { "eventVersion": 1, "event": "contract.analysis_completed" },
  "organizationId": "<org id>",
  "contractId": "<contract id>",
  "contractNumber": "…",
  "analysisId": "<analysis uuid>",
  "analysisVersion": 1,
  "modelId": "claude-sonnet-5-5",
  "pageCount": 12,
  "severityHighest": "medium",
  "message": "Vendor extraction completed for …"
}

Signed webhooks (opt-in, v1)

By default the secret is sent as-is in X-Contrax-Signature (a shared secret, not an HMAC signature). Workspaces can explicitly switch the custom webhook to HMAC v1; existing endpoints are never switched automatically. In v1 the secret never leaves Contrax and each request carries:

X-Contrax-Signature-Version: v1
X-Contrax-Event-Id: 6f1c2a9e-1b6f-4b8e-9c55-1e0b9f6c2d11
X-Contrax-Timestamp: 1794200000
X-Contrax-Signature: v1=<hex HMAC-SHA256(secret, "<timestamp>.<event id>.<raw body>")>

To verify on your side:

  1. Read the raw request body bytes exactly as received (before JSON parsing).
  2. Recompute HMAC-SHA256 over `${timestamp}.${eventId}.${rawBody}` with your secret.
  3. Compare with the hex after v1= using a constant-time comparison.
  4. Reject timestamps more than 5 minutes from your clock (bounded tolerance).
  5. Store processed X-Contrax-Event-Id values and ignore repeats, so handling is idempotent.

Signing proves the request came from someone holding the secret and that the body was not changed; on its own it does not prevent replay — steps 4 and 5 do.

// Node.js
import { createHmac, timingSafeEqual } from 'crypto';
function verify(secret, rawBody, h, nowSec = Math.floor(Date.now() / 1000)) {
  const ts = Number(h['x-contrax-timestamp']);
  if (h['x-contrax-signature-version'] !== 'v1' || Math.abs(nowSec - ts) > 300) return false;
  const expected = createHmac('sha256', secret)
    .update(`${ts}.${h['x-contrax-event-id']}.${rawBody}`).digest();
  const given = Buffer.from(String(h['x-contrax-signature']).replace(/^v1=/, ''), 'hex');
  return given.length === expected.length && timingSafeEqual(given, expected);
}

Test vector: secret whsec_test, timestamp 1794200000, event id evt_1, body {"a":1} → v1=972ffaa759b39b7de2aac18604fdeaa13339fa0d9addaac295b5e9e974057571.

Related product pages

Frequently asked questions

Renewal reminders, workflow lifecycle events, and extraction completion—JSON payloads documented on the reminder webhooks page.

Configure an optional shared secret header in Workspace settings and verify it in your receiver.