Skip to content
DocsMenu

conformance.finding_reported webhook event

View as Markdown

Open this page inChatGPTClaudeCursor

Esign Comply sends the conformance.finding_reported webhook event when a live record is sealed with one or more failed rules at Block level. It is sent in live mode only. The delivery is a signed POST to every enabled endpoint that subscribes to the type or to all events.

Event type conformance.finding_reported · API version 2026-11-21

When conformance.finding_reported fires

Sent once for each live record that is sealed with one or more findings at block level. That happens in two cases. The domain's conformance_enforcement setting was notify when the session was created, so a failing live signature is recorded and reported. Or the setting was block and the failed rule ran in advise for the session, for example because the profile has not adopted it yet.

The event is queued in the same transaction that writes the record, so there is an event exactly when there is such a record. record.completed for the same record is queued afterwards, when the receipt is signed.

It is not sent in test mode, and not for warnings. With block, a live signature that fails an enforced rule is refused with 422 conformance_failed: no record exists and no event is sent. The organization's owners and admins also get an email, at most once a day for each rule, while this event is sent for every such record.

Fields

The body of every delivery has the same seven fields:

Field Type Description
object string Always event.
id string The event ID, whe_ and 20 characters. The same value as the webhook-id header, and the same on every retry.
type string The event type.
api_version string The API version the endpoint was created on.
livemode boolean true for an event of live mode. A live event goes to live endpoints only, and a test event to test endpoints only.
created_at datetime When Esign Comply queued the event for delivery.
data object The fields of the event, listed below.

Fields of data

Field Type Description
record_id string The record that was sealed.
session_id string The session that produced it.
signer_external_id string The signer, as your application named them.
enforcement string The domain's setting when the session was created: notify or block.
page_url string or null The context.url of the session: the page the signature was made on.
rules string[] The IDs of the rules that failed, each once.
findings object[] One entry for each failed check.
findings[].rule string The rule ID, for example CR-01.
findings[].status string Always block.
findings[].state string How the rule ran for this session. advise on every finding of a sealed record: a failed rule in enforce refuses the signature, so it is never reported here.
findings[].message string What was found.
findings[].fix string or null How to repair the page.
findings[].maps_to string[] The pack rules behind the check.

Verify the signature

Every delivery carries webhook-id, webhook-timestamp and webhook-signature. The signature is v1, and a base64 HMAC-SHA256 over <webhook-id>.<webhook-timestamp>.<raw body>, keyed with the base64-decoded part of the endpoint's secret after whsec_. Verify the raw body before you parse it, and refuse a timestamp more than 5 minutes from now.

// app/api/esigncomply/webhook/route.ts
import { EsignComply } from "esigncomply";

const esc = new EsignComply(process.env.ESIGNCOMPLY_API_KEY);

export async function POST(request: Request) {
  // Verify the raw body, byte for byte, before parsing it.
  const rawBody = await request.text();
  const { data: event, error } = await esc.webhooks.verify(
    rawBody,
    request.headers,
    process.env.ESIGNCOMPLY_WEBHOOK_SECRET!,
  );
  if (error) return new Response("Invalid signature", { status: 400 });

  if (event.type === "conformance.finding_reported") {
    // event.data holds the fields listed on this page.
  }
  return new Response(null, { status: 200 });
}

Without the SDK, compute the same HMAC yourself: the code is under Verify the signature.

Retries

A delivery succeeds when your endpoint answers with a status from 200 to 299 within 10 seconds. Any other status, a redirect, a timeout or a network error is a failure. A failed delivery is tried again on this schedule, 14 attempts in all:

Attempt Wait after the attempt before Time since the first attempt
1 none 0
2 30 seconds 30 seconds
3 2 minutes 2 minutes 30 seconds
4 10 minutes 12 minutes 30 seconds
5 30 minutes 42 minutes 30 seconds
6 1 hour 1 hour 42 minutes 30 seconds
7 2 hours 3 hours 42 minutes 30 seconds
8 4 hours 7 hours 42 minutes 30 seconds
9 8 hours 15 hours 42 minutes 30 seconds
10 12 hours 27 hours 42 minutes 30 seconds
11 12 hours 39 hours 42 minutes 30 seconds
12 12 hours 51 hours 42 minutes 30 seconds
13 12 hours 63 hours 42 minutes 30 seconds
14 8 hours 17 minutes 30 seconds 72 hours

After attempt 14 fails, the delivery is marked failed and is not tried again. Each attempt has a new webhook-timestamp and signature over the same webhook-id and body. An endpoint whose deliveries have failed for more than 5 days is disabled on its next failed attempt, and the owners of the organization get an email. Read what was sent with List webhook deliveries.

Handle conformance.finding_reported idempotently

Open a ticket or alert the team that owns the page in page_url, with each rule and its fix. The signature was recorded, so do not block the signer in the handler. GET /v1/records/{id} returns the record with the same findings in advisories.

Deliveries are at-least-once and their order is not guaranteed. Store each webhook-id you have handled and return 200 at once when you see it again. Read the object from the API when you need its current state, and return 200 for event types your handler does not know.

Questions about conformance.finding_reported

When is conformance.finding_reported sent?

It is sent when a live record is sealed with one or more failed rules at Block level. The delivery is a signed POST to every enabled endpoint that subscribes to conformance.finding_reported or to all events.

Is conformance.finding_reported sent in test mode?

No. It is sent in live mode only, to the endpoints created with a live key.

How do I subscribe to conformance.finding_reported?

Name it in the events list of a webhook endpoint, or subscribe the endpoint to all events with "*". Create the endpoint with POST /v1/webhooks or in the dashboard. An endpoint with no events list receives every type.

Is a failed conformance.finding_reported delivery retried?

Yes. A delivery that does not get a 2xx answer within 10 seconds is tried again, up to 14 attempts over 72 hours. An endpoint that keeps failing for more than 5 days is disabled, and the owners of the organization are told by email.

Can conformance.finding_reported arrive more than once?

Yes. Deliveries are at-least-once, and a retry carries the same webhook-id and the same body. Make the handler do its work once for each webhook-id, and treat the event as a statement about the object rather than as a counter.

How do I verify a conformance.finding_reported delivery?

Check the webhook-signature header against the raw request body with the signing secret of the endpoint. The signature is an HMAC-SHA256 over the webhook-id, the webhook-timestamp and the body, joined by full stops. Refuse a delivery whose timestamp is more than 5 minutes from now.

Last updated · API version 2026-11-21