Enabled per account. Until webhooks are enabled for your account, management calls return
403 with details.reason: "not_enabled". Email
[email protected] to enable them.POST to it whenever an order of your
clinic changes. Every event identifies the order by its accessionId and carries the order’s
complete current status: order, kit and report status, report counts, and the unified status.
Payloads never contain patient names, dates of birth, contact details, tests, or results. An
accession ID together with a lab status is still protected health information (PHI), so handle
every payload as PHI.
1
Get an RS256 access token
Use your existing client ID and client secret. Request the token with
algorithm=RS256; see
Authentication for the management API.2
Create an endpoint
POST /v1/webhooks with your HTTPS URL. Save the returned secret on your server; it is shown
only once.3
Verify, store, acknowledge
Verify the signature on the raw body, save the event, and answer
2xx. Process it
asynchronously.4
Fetch what changed
Use the event’s
accessionId with the Report endpoint to retrieve
the latest results.Coverage and identifiers
An endpoint receives events for every order of your clinic: orders from all of its providers, placed through the Vibrant Portal or this API. You never pass a clinic or provider ID; your account comes from your credentials. You receive events only while an order belongs to your clinic. When it leaves, you receiveorder.access_revoked.
Events identify the order only by accessionId. They do not include orderId or placerId.
accessionIdis an opaque string of 1 to 64 characters. It is usually 10 digits but can contain letters (sandbox simulations useSIMfollowed by 10 digits). Never parse it as a number.- To match events to your own orders, store the
accessionIdthatPOST /ordersreturns.POST /ordersreturns it as a JSON number, so compare it as a string:2508088888matches"2508088888". Rows of the order list also carryaccessionIdnext to yourplacerId.
WIP — coming soon: looking up an order by
accessionId
in Get orders, for orders placed through this API. An order placed in the Vibrant Portal will
return 403 (not_placed_via_api); use its accessionId with the
Report endpoint instead. Until the lookup is available, use the
Report endpoint, or find the order in the order list.Authentication for the management API
The management API uses the same OAuth client as the rest of the Portal API: your existing client ID and client secret. Request the access token withalgorithm=RS256. Tokens signed with any other
algorithm are rejected with 401.
Authorization: Bearer <access_token>. Request a new token when the current one
expires or a call returns 401. Only client-credentials tokens can use this API; a token from a
user sign-in flow returns 403 with details.reason: "client_credentials_required".
Sandbox and production are fully separate. Endpoints, secrets, tokens, and delivery logs exist only
in the environment where you created them.
Manage endpoints
Request bodies are JSON (UTF-8, at most 16 KiB). Fields are camelCase; timestamps are RFC 3339 in
UTC with milliseconds. IDs are prefixed strings:
whk_ (endpoint), whsk_ (signing secret),
evt_ (event), dlv_ (delivery). An unknown field or query parameter returns 400, and so does a
clinicId or customerId anywhere in the request. Lists take page and perPage (default 20,
maximum 100) and return items, count, page, and perPage, newest first.
Accession IDs never appear in management API URLs. To find the deliveries of one order, send its
accessionId in the body of POST …/deliveries/search.
Create an endpoint
The
201 Created response is the endpoint object plus its signing secret. The secret is never
returned again; if you lose it, rotate it.
Response
active and receives events for changes from then on. It does not replay
history; see Load orders already in progress.
Your account can have at most 10 endpoints, and each URL can be registered once. Creating the
same URL again returns 409 with details.existingId, so a retried create is safe.
URL requirements
URLs are normalized before they are stored and compared: lower-case host, internationalized names in punycode, no explicit:443, and an empty path becomes /. A URL that breaks a rule returns 422 URL_NOT_ALLOWED with one of these details.reason values:
Query strings are allowed, for example to route requests to a tenant, but they are not secret: the
management API returns the full URL. Never put PHI or credentials in the URL. The address rules are
checked again on every delivery attempt. Your server must present a certificate from a publicly
trusted certificate authority and support TLS 1.2 or later. Redirects are never followed.
Choose event types
eventTypes: null (the default) subscribes to order.created, order.status_changed, and
order.access_granted. To receive fewer, send a non-empty list of those types without duplicates.
order.access_revoked and order.deleted are always delivered, whatever the filter, so you always
learn when to stop showing an order.
Update, disable, or delete an endpoint
PATCH /v1/webhooks/{webhookId} takes only the fields to change: url (the signing secret is
kept), description, eventTypes, apiVersion, or status. status: "disabled" pauses
deliveries; status: "active" re-enables a disabled endpoint and resets its health.
GET returns an ETag with the endpoint’s version. Send it as If-Match on PATCH or DELETE
to avoid overwriting a concurrent change; a mismatch returns 412 with details.currentVersion.
Status and health changes made by Vibrant, and secret rotations, do not change the version.
DELETE /v1/webhooks/{webhookId} returns 204. Its signing secrets are destroyed immediately,
waiting deliveries are canceled, and its delivery log is no longer available.
Rotate the signing secret
POST /v1/webhooks/{webhookId}/rotate-secret creates a new current secret and returns it once.
The previous secret stays valid for an overlap period, set with previousSecretExpiresInSeconds
(0 to 604,800; default 86,400, or 24 hours; 0 revokes it at once). During the overlap, every event
carries two signatures, new first.
Response
secrets array lists each valid secret’s fingerprint: the first 8 hex digits of
the SHA-256 of the decoded key. Use it to check which secret your verifier holds.
Monitor endpoint health
A failing endpoint is disabled automatically (
disabledReason: "sustained_failure") once it has
been failing for 5 days with a failed attempt in the last 24 hours; health.disablesAt shows when.
An endpoint that answers 410 is disabled at once (gone). Other reasons are manual (you disabled
it) and ops (Vibrant support; contact us to re-enable). Vibrant does not send email alerts about
endpoint health, so check status and health with a periodic GET.
Events
Event types
Ignore event types you do not recognize.
Envelope
Order data
Status events are
order.created, order.status_changed, order.access_granted, and
order.snapshot. If previousSequence differs from the last sequence you stored for the
accession, you missed one or more events; status is still complete.
Status block
Status values
Every vocabulary can grow. Treat unknown values as valid and fall back to a generic display.orderStatus, kitStatus, reportStatus, and unifiedStatus can also be unknown: Vibrant could
not classify the current value. issues has no unknown code: an issue is either listed or absent.
orderStatus
kitStatus
Canceling an order does not change
kitStatus to canceled; the cancellation shows in
orderStatus and unifiedStatus.
reportStatus and reports
The provider portal’s “N of M reports available” is
reports.generated of reports.total. Show it
only when total is greater than 0: many orders have available results with total: 0 because no
report count was recorded. An order has unread reports when viewed is less than generated.
unifiedStatus
The single progress value the provider portal shows. Values are lower-case letters and underscores, and new values can appear without a new API version.
Handle the values marked “Not emitted yet” now, so no change is needed when they start to appear.
issues
An issue disappears from the array when it is resolved. While
orderStatus is canceled, issues
is always empty. Some issue codes can reveal patient attributes indirectly, which is one more reason
to handle every payload as PHI. To see whether an issue blocks the report, read the issue flags from
Get orders or the Report endpoint.
What triggers an event
Anorder.status_changed is sent when any of these change: orderStatus, kitStatus,
reportStatus, reports.total, reports.generated, unifiedStatus, or the set of issues (order
does not matter).
Other changes ride along: they do not trigger an event on their own, but the next event carries
their current values, because every event contains the full status. These include reports.viewed
(someone viewed a report) and changes inside Vibrant that do not change any field in the payload.
Several changes made in quick succession may be combined into one event; changes then lists every
field that differs from previous. Vibrant does not guarantee one event per internal change.
Report updates
There is no separate report event. When a report is finalized or amended, you receive anorder.status_changed with reportStatus or reports in changes.
WIP — amendment notifications. Every amendment produces a notification, including another
amendment of a report that is already
amended. In that case reportStatus and the report counts
can stay the same; which fields changes lists is being confirmed.reportWorkflow.reportNames lists the report names). Fetch the accession from the
Report endpoint and replace the results you stored: the endpoint
always returns the latest content of every report under the accession. Handle fetches for the same
accession one at a time, so a slower, earlier fetch cannot overwrite newer results.
A blocking issue can withhold result content even when results are available; see
Exceptions. The event does not say whether an issue blocks the report. When
an issue is resolved, its code leaves issues and you receive an order.status_changed with
issues in changes: if your last fetch came back withheld, fetch the report again. Coming soon:
a separate reportReady reason once all report-blocking issues are resolved and
results are accessible.
Report workflow
WIP — coming soon. The
reportComposition and reportReady reasons and the reportWorkflow
object are not delivered yet, and their shape may change.changes of order.status_changed. There is no new event type and
no new subscription, and apiVersion stays 2026-11-01. Ignore changes values you do not
recognize.
Issue notifications stay independent: resolving only some blocking issues can still notify through
issues, and one event can carry both issues and reportReady.
When available, status.reportWorkflow, and previous.reportWorkflow where available, carry:
reportWorkflowcan be absent. Its absence does not mean that there are no reports or no blocking issues.- The two counters are not content versions and are independent of
sequence. Compare them with the last snapshot you applied to catch changes that were combined into one event. A later event can carry the same counters even if itschangeslists only order or issue fields. - The first snapshot for an order sets a baseline; it does not report a past change.
reportsandreportCompositioncan arrive in one event or in two. Do not require both in the same event.- Keep fetching current results, PDFs, and issues from the Report endpoint. Amendments are notified as described in Report updates, not through these reasons.
The examples below show only the relevant fields. Other status fields are omitted, and so are the
other
reportWorkflow fields in the first two examples: when reportWorkflow is present, it
carries all five fields.
One report replaced, counts unchanged
One report added
Access restored after blocking issues resolve
Cancellation
A cancellation arrives asorder.status_changed with orderStatus: "canceled" and
unifiedStatus: "canceled".
Examples
These payloads are pretty-printed for reading. On the wire, the body is compact JSON without spaces or a trailing newline, so always verify the signature on the exact bytes you received. The examples illustrate production events; simulated sandbox events can carry different values, for exampleorderStatus: "received" when the kit ships.
order.status_changed (kit shipped to the patient)
order.status_changed (1 of 3 reports available)
order.status_changed (order canceled)
order.created
order.access_revoked
order.deleted
webhook.test
Receive and verify events
HTTP request
Each event is an HTTPPOST to your URL with a JSON body, usually 0.5 to 1.2 KiB and never larger
than 64 KiB. The format follows Standard Webhooks v1, so any
official standardwebhooks library (Node.js, Python, Go, Java, C#, PHP, Ruby, Rust) can verify it.
Requests carry no cookies, no
Authorization header, and no custom headers. They are never
compressed and do not follow redirects. The signature is the authentication: always verify it.
Requests for different orders can arrive concurrently; requests for the same order never do.
Verify the signature
- Secret.
whsec_followed by the base64 encoding of 32 random bytes. The HMAC key is the base64-decoded part afterwhsec_, not the string itself. - Signed content.
{webhook-id}.{webhook-timestamp}.{raw body}: the two header values and the exact body bytes, joined with full stops. - Signature.
v1,followed bybase64(HMAC-SHA256(key, signed content)). - Header.
webhook-signatureholds one or more space-separated entries. Accept the request if anyv1entry matches; ignore entries with other version prefixes. - Timestamp. Reject the request if
webhook-timestampis more than 5 minutes (300 seconds) away from your clock, in either direction. Keep your server clock synchronized.
Python
Test vector
Use this vector in a unit test of your verifier. With these inputs, your code must compute exactly this signature. Evaluate the timestamp check at time1791743551, or skip it in the test.
whsec_dmlicmFudC13ZWJob29rcy10ZXN0LXZlY3Rvci1rMDI= as the new current
secret, the header is v1,f3CcXQrq/Eh3a+9mNt/qGl+5lIWdIWV4ClK+Ixangag= v1,asCCJ+oojStj/w9Kaa+P6H6UCEMaRbEkQJv4IHLWTMc=,
and a receiver holding either secret accepts it. Also test that a body changed by a single byte, and
a timestamp more than 300 seconds away, are rejected.
Respond and retry
Answer2xx after you have verified the request and reliably saved or queued the event. The
response body is ignored. Run your business logic, including report retrieval, asynchronously.
Each attempt is limited to 5 seconds to connect, 5 seconds for the TLS handshake, 10 seconds for
response headers after the request is sent, and 15 seconds in total.
Automatic deliveries are retried for up to 72 hours after the event was created, with up to
18 attempts. Each delay counts from the end of the previous attempt and varies by ±20%, but never
exceeds 6 hours:
When the attempts are used up, or the next attempt would fall after the 72-hour window, the
delivery ends as failed with outcome
expired. Use recover (within
7 days) or resend to fill the gap. Simulated deliveries are
retried for 24 hours; test events get a single attempt.
Delivery guarantees
- At least once. An event can arrive more than once.
webhook-idis identical on every retry and redelivery, and across your endpoints; deduplicate on it. - Order. Automatic deliveries for one order to one endpoint are made one at a time, and an older
event is never sent after a newer one has been sent. There is no ordering across orders.
Redeliveries and recovered events repeat older events and can arrive late: discard an event whose
sequenceis lower than the last one you stored for the accession. - Superseded. If a newer event for the same order is created while an older one is still waiting for its next attempt, only the newer one is delivered. No information is lost, because every status event carries the complete status.
- Ownership. You only receive events for orders that currently belong to your clinic.
Recover missed events
Delivery log
Every delivery, with all its attempts, is kept for 30 days.GET …/deliverieslists deliveries newest first. Filter bystatus,eventType,kind(event,redelivery,test,simulated), andcreatedFrom/createdTo(a window of at most 30 days; default the last 7 days).POST …/deliveries/searchwith{"accessionId": "2508088888"}lists the deliveries of one order.GET …/deliveries/{deliveryId}returns one delivery with itsattempts(at,durationMs,statusCode,error) and the exactpayloadsent.
status is pending, sending, delivered, failed, superseded, or canceled.
A delivery that ended without success has an outcome: expired, gone, single_attempt,
access_revoked / not_routed, deleted, or endpoint_deleted. Attempt error values are
timeout, dns, connect, tls, blocked_destination, redirect, http, and lease_expired
(the result could not be confirmed in time, so the delivery is retried and may arrive twice). Your
endpoint’s response bodies and headers are never stored.
Redeliver a delivery
POST …/deliveries/{deliveryId}/redeliver sends the same event again, with the same eventId and
exactly the same bytes: immediately, then after about 30 seconds and 2 minutes if needed. It works
for deliveries that are delivered, failed, or superseded, within the 30-day retention.
409 NOT_REDELIVERABLE gives a details.reason: access_changed, in_progress,
superseded_by_newer, or original_unavailable (use resend instead).
Recover after an outage
POST …/recover with since (within the last 7 days) and optional until re-queues events your
endpoint never received because their 72-hour window ran out. For each order whose newest delivery
in the window ended expired, one redelivery is queued on the automatic retry schedule with a new
72-hour window. At most 1,000 orders are re-queued per call; if the response has truncated: true,
call again with the same since and until.
Response
Re-send the current state of orders
POST …/resend with up to 50 accessionIds sends each order’s current status to this endpoint
only, as an order.snapshot, whatever its eventTypes. If the order changed since its last event,
an order.status_changed is sent instead, to every subscribed endpoint. An accession that is
unknown, belongs to another clinic, or has no order returns not_found; the three cases are
deliberately indistinguishable.
Response
Load orders already in progress
Creating an endpoint does not replay history. At go-live, take your open orders from the order list and resend theiraccessionIds to receive
their current state.
Test your integration
Send a test event
POST …/test sends one signed webhook.test event to the endpoint. It makes one attempt, works on
disabled endpoints, and never changes the endpoint’s health. The response is 200 with status,
statusCode, and durationMs if the attempt finished within 10 seconds, or 202 with status: "pending" otherwise; read the outcome from the delivery log.
Simulate an order in sandbox
POST …/simulate plays a scripted order lifecycle to this endpoint only, through the same status
logic as real orders. Each run creates a new simulated accession: SIM followed by 10 digits.
Simulated events carry data.simulated: true, and their deliveries have kind: "simulated".
A simulated accession exists only in these events: Get orders and the Report endpoint do not
return it. To move an order you placed yourself and query it, use the
order simulator (coming soon).
To run one, create an endpoint in sandbox, then call
simulate with its webhookId and a
scenario. The events arrive at that endpoint only, and appear in its
delivery log with kind: "simulated".
Response
202 response lists the simulated accessionId and each scheduled event’s eventId, type,
and scheduledAt. The first event is due immediately. You can run 10 simulations per hour, with
at most 20 simulated orders in progress. simulate returns 404 in production.
Before you go live
- Your verifier passes the test vector and rejects a changed body and a stale timestamp.
- A duplicate delivery is ignored (
webhook-id), and an event with a lowersequencethan the one you stored does not overwrite newer state. - A report notification leads to a fetch from the Report endpoint that replaces the stored results.
- Your receiver ignores
changesvalues it does not recognize and works whenreportWorkflowis absent. - An event that changes only
issues(issues), a canceled order (cancel), an order that leaves your clinic (transfer_out), and a deleted and re-created accession (delete_and_recreate) are handled. - A failed delivery (
500or a timeout) is retried, and your endpoint recovers when it answers2xxagain.
Rate limits
Limits apply per account, and per endpoint where noted. Responses carryX-RateLimit-Limit,
X-RateLimit-Remaining, and X-RateLimit-Reset; a 429 adds Retry-After (seconds). The token
endpoint allows 10 requests per minute per client, so cache the token for its whole lifetime.
Errors
Management API errors use this envelope.details is present only when there is something to add.
Every response carries
X-Request-Id. If you send X-Request-Id or X-Correlation-Id (up to 128
visible ASCII characters), it is echoed back. Quote it when you contact support.
Versioning
Payloads are versioned by date. The current version is2026-11-01. Each endpoint is pinned to the
version it was created with, shown in apiVersion on the endpoint and in every event. When a new
version is released, test it and move your endpoint with PATCH {"apiVersion": "…"}.
These changes can happen within a version, without notice: new fields in any object; new values in
any status, issue, or changes vocabulary; new event types; and new HTTP headers. Removing or renaming a
field, changing a field’s type or meaning, or changing the sequence or signature semantics happens
only in a new apiVersion.