# guidance.notice_published webhook event

> The guidance.notice_published webhook event is sent when a guidance notice that reaches the domain is published: fields, verification and retries.

Source: https://esigncomply.com/docs/api/webhooks/guidance-notice-published

Last updated November 26, 2026

Esign Comply sends the `guidance.notice_published` webhook event when a guidance notice that reaches the domain is published. It is sent in test mode and in live mode. The delivery is a signed POST to every enabled endpoint that subscribes to the type or to all events.

Event type `guidance.notice_published` · API version `2026-11-21`

## When guidance.notice_published fires

Sent when a guidance release is published and one of its notices reaches the domain. A notice reaches a domain when one of the notice's jurisdictions is a pack enabled on one of the domain's profiles, is on the domain's watched list, or is the country or state of the organization. A notice for a country code also reaches a domain that enables the `EU` pack, except for `US`, `GB` and `CH`.

Each notice is sent once per domain, in both environments: a test endpoint and a live endpoint each get one event. A domain whose subscription is canceled gets none. The notices of a release are queued after the release's own events: `guidance.release_published`, `jurisdiction.pack_updated` and `profile.adoption_available`.

A notice never changes how recording works. The same notice goes to the dashboard inbox, and one with severity `action_required` is also emailed to owners on paid plans.

## 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 |
|---|---|---|
| `notice_id` | string | The notice, for example `ntc_2026_0001`. |
| `kind` | string | What happened: `law_enacted`, `law_effective`, `rule_change`, `case_law`, `regulator_guidance`, `enforcement_action`, `correction` or `product`. The list is open. |
| `class` | string | `record_change`, `obligation`, `recommendation` or `information`. The list is open. |
| `severity` | string | `action_required`, `recommended` or `info`. The list is open. |
| `jurisdictions` | string[] | The jurisdiction codes the notice is about. |
| `effective_at` | datetime or null | When the change takes effect. `null` when the notice has no date. |
| `affected_profiles` | string[] | IDs of the domain's profiles that enable a pack of the notice. The list holds profiles of both environments. |
| `update_prompt` | string or null | The ID of the update prompt that describes the change for an AI coding tool. `null` when the notice has none. |

## 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.

```ts
// 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 === "guidance.notice_published") {
    // 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](https://esigncomply.com/docs/api/webhooks.md#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](https://esigncomply.com/docs/api/account/list-webhook-deliveries.md).

## Handle guidance.notice_published idempotently

Forward the notice to a person: read its title and summary with `GET /v1/guidance/notices/{id}` and send them to your admin channel. Do not change application behavior in the handler. When `update_prompt` is set, `GET /v1/guidance/updates/{update_prompt_id}` returns the prompt, and `POST /v1/guidance/notices/{id}/acknowledge` records that you handled the notice.

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 guidance.notice_published

### When is guidance.notice_published sent?

It is sent when a guidance notice that reaches the domain is published. The delivery is a signed POST to every enabled endpoint that subscribes to guidance.notice_published or to all events.

### Is guidance.notice_published sent in test mode?

Yes. It is sent in test mode and in live mode. A test event goes to the endpoints created with a test key, and a live event to the endpoints created with a live key.

### How do I subscribe to guidance.notice_published?

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 guidance.notice_published 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 guidance.notice_published 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 guidance.notice_published 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.

## Related

- [Webhooks](https://esigncomply.com/docs/api/webhooks.md): delivery, the signature, retries and every event type.
- [`guidance.release_published`](https://esigncomply.com/docs/api/webhooks/guidance-release-published.md): sent when a guidance release that concerns the domain is published.
- [Create a webhook endpoint](https://esigncomply.com/docs/api/account/create-a-webhook-endpoint.md): subscribe a URL to event types.
- [Send a test webhook event](https://esigncomply.com/docs/api/account/send-a-test-webhook-event.md): check your handler before a real event arrives.
