Create an endpoint
secret. It is shown only once, so store it now.
employerIds and states for OSHA
events, and programIds for RSL log events and underwriting events tied to a program. Only events
that happen after you create the endpoint are sent.
What you receive
data.path is the OSHA row behind the event, relative to /api/v2, as in the
employer guide.
An rsl_log.written event is sent when a log opens and for each write that records entries. Its
data has the program, seq (the log’s last entry after the write) and steps (the type of
each entry recorded, such as answered or accepted). It has no status or answers: read the log, or its
/status, at subject.$uri with a credential that can read it.
An underwriting_submission.extraction.completed or underwriting_submission.extraction.failed
event is sent when an extraction of a submission ends, however
the service learns of it: its run’s end, or the next start on the submission finding the run had
ended. Each extraction has one event id. A cancelled extraction is sent as failed with
data.status cancelled. The event’s data includes the submissionId, status, programId
(which can be null), and creation and completion times. Completed extractions include counts of
proposals, missing inputs, and unread documents. Failed extractions include failureCode.
Read the extraction at subject.$uri for its proposals.
underwriting_submission.updated is sent when a write is saved to a submission’s log, for example
when a value is accepted, a quote is recorded, or a submission is bound or declined. Its data has
the log’s status and seq after the write. Read the submission at subject.$uri for its current
stage, rating, and quotes. Like extraction events, it goes to endpoints whose owner can read the
submission at delivery time. The endpoint owner is the person who created it or last changed its
url.
Enabled endpoints receive their subscribed events and any test events you request. Ignore any event
type your code doesn’t recognize.
Verify and respond
Each request has anEffective-Signature header like t=1761136867,v1=5257a8…. Compute an
HMAC-SHA256 of <t>.<raw body> with your secret and compare it to v1. Reject requests whose t
is more than five minutes old.
"disabledReason": "failing". An event can arrive more than
once or out of order, so skip IDs you have already handled.
To check your receiver, send a test event with
POST /api/v2/webhook-endpoints/{id}/test. Webhooks have no usage charge.