Skip to main content
Enoki can deliver events to an HTTPS endpoint you operate: a run’s new findings, a clean run, and a recurring assessment the platform paused. A workspace admin configures the destination in Settings → Integrations, on the Outbound webhook card, with two values: the endpoint URL and a signing secret of at least 16 characters. An optional severity threshold on the same card limits which findings are sent. Every delivery is signed with that secret, and your receiver should verify the signature before it parses or trusts the body.

Delivery headers

Every delivery is a POST with a JSON body and two headers: The signed input is f"{timestamp}.{raw_body}": the timestamp header value, a literal ., then the exact bytes of the request body. Because the timestamp is part of the signed input, it cannot be altered without invalidating the signature.

Verify before you parse

  1. Read the raw request body as bytes. Do not re-serialize parsed JSON: key order and whitespace would differ and the signature would never match.
  2. Recompute HMAC-SHA256(secret, f"{timestamp}.".encode() + raw_body) using the timestamp header value.
  3. Compare the recomputed sha256=<hex> string to the X-Enoki-Signature header in constant time (hmac.compare_digest). Never use == on the digest.
  4. Reject the delivery if the signed timestamp is outside a freshness window (we recommend 5 minutes). This bounds replay of a captured request.

Delivery payload

The body is a flat JSON object. Branch on the event field first and tolerate fields you do not recognize; schema_version increments when the shape changes. Three event kinds exist today: Every event carries event, schema_version (payload schema version, a string: "1" today), timestamp (event time, ISO-8601 UTC) and workspace_id. Run events (run.findings_opened, run.all_clear) add: The schedule event (schedule.paused) has no findings array and no assessment_run_id; it adds: There is no resume: the way back is to delete the schedule and create a new one.

Good to know

  • Retries mean possible duplicates. Failed deliveries (network errors, timeouts, 5xx responses) are retried with backoff, up to three attempts in all, so your receiver may see the same event more than once. After the third failed attempt the event is not sent again. Deduplicate on event plus assessment_run_id, or plus schedule_id for the schedule event, if that matters to you.
  • Respond with a 2xx within 10 seconds. Any 2xx counts as delivered; a slower response counts as a failed attempt and is retried. A 4xx is treated as a permanent rejection and is not retried.
  • Deliveries never follow redirects. Point the destination URL directly at your receiver.
  • HTTPS only. Plain-HTTP destination URLs are rejected when you configure the webhook, and URLs resolving to private or internal addresses are rejected before every delivery.
  • Slack destinations are not signed. This recipe applies to the generic webhook only; Slack incoming-webhook deliveries carry no signature headers.
  • Redacted findings are not sent in full. If finding detail is withheld in your dashboard, it is withheld here too: those findings arrive with title reading [redacted], and their severity and link still come through.
  • To file issues rather than receive events, connect Linear, Jira or GitHub: Enoki creates and closes the issues itself.
  • Use Send test on the Outbound webhook card to fire a sample delivery at your receiver while you build the verifier. It sends to the saved URL with the saved secret, so save any changes first. The probe carries the real run.findings_opened shape plus "test": true, and its sample finding is not a real one — the entry links to your findings list rather than to a finding detail page.