Skip to content
Hermes Health API
API referenceOpenAPI spec

Guide

Manage webhook endpoints

Rotate the signing secret and opt in to other events.

Once an endpoint is receiving deliveries, the work is mostly upkeep: rotating its secret, changing which events it receives, and moving older endpoints onto named events.

Who can change an endpoint

A webhook endpoint belongs to your company, not to the person who created it, so it keeps delivering when that person leaves. Anyone in your company with the ManageWebhooks permission can edit it, delete it or rotate its secret. What it delivers is limited to what a company administrator can see. Email notifications still belong to the person they email, and only that person can change one. They live on a separate page, Settings → Notifications; webhooks are under Settings → Webhooks.

Everyone with the ManageNotifications permission starts with one email notification, My notifications, on the records they follow. It carries recordRequest.authorizationNeedsResolution, recordRequest.completed, authorization.needsResolution and note.created, plus aiResearch.completed for anyone who can run AI research. It is an ordinary notification: its owner can change its events, turn it off or delete it.

Rotate the signing secret

  1. Under Settings → Webhooks, regenerate the endpoint’s secret.
  2. For the next 24 hours, every delivery is signed with both the new and the old secret, and X-Webhook-Signature lists both.
  3. Switch your receiver to the new secret at any point in that window.

Because your receiver accepts a match against any listed signature, no delivery is rejected during the switch.

Change an endpoint’s events

Open Edit events and scope on the endpoint, tick or untick events or whole groups, adjust the scope, and save. The change applies to the next event.

Two events come from a run rather than from a record changing:

Clinical data added (clinicalData.added) tells you a run found something new. siteSonar.completed and patientHistories.completed tell you a run finished, which happens whether or not the patient’s record grew. This event carries counts of what is new, by type, and a run that found nothing sends nothing. Webhook endpoints only. A run reports a batch of patients; each endpoint is sent only the patients its scope covers.

AI research completed (aiResearch.completed) tells you an AI research run started by anyone in your company has finished. The endpoint’s project scope does not apply, since a researched site belongs to no project. An email notification receives it only for the runs its own person started.

A patient enrolled in more than one product gets one clinicalData.added per product, and each delivery’s source says which. Each count covers only that product’s run, so take the larger figure rather than adding them up.

Both are delivered like every other named event: signed with a timestamp, carrying X-Webhook-Id and version: "events", and retried until your receiver acknowledges them.

Upgrade a Classic endpoint

A Classic endpoint subscribes to columns instead of named events, and is shown with a deprecation banner. You can still create one, from the Create a Classic webhook instead link in the create dialog, until January 31, 2027, but named events are recommended. On that date every Classic endpoint, webhooks and email notifications alike, is moved to named events automatically, with the Full record payload, even where the move loses something: the payload format changes and some columns stop triggering a delivery. An endpoint that cannot be moved is stopped. Upgrading first lets you choose the events and control the change. Anyone who can change the endpoint can upgrade it. Select Upgrade to Events to see, for each of its subscriptions, the events it becomes, which of its columns are still in a payload without triggering anything, and which are in no payload at all. Classic subscriptions could each have their own scope; the upgrade uses the broadest of them, and the preview says so. A webhook always upgrades to every record, since it cannot follow tracked records. Confirm, and the endpoint switches to named events in one step, keeping its URL, secret and headers.

On a Classic endpoint, the two run events above are picked from the Events group at the end of the subscription builder’s Entity dropdown, as clinicalDataAdded and aiResearchCompleted. Those are delivered differently:

  • The body has only eventType and data: no id, timestamp, resource, changed or version.
  • They are sent once, with no retry, and never disable the endpoint.
  • They carry no X-Webhook-Timestamp, no X-Webhook-Id and none of the endpoint’s custom headers, and their X-Webhook-Signature is the HMAC-SHA256 of the raw body alone, not of {timestamp}.{body}. After an upgrade they are signed like every other named event and carry the endpoint’s custom headers, so update your verification before you upgrade.

Next steps