Skip to main content
PATCH
Update a webhook endpoint

Authorizations

Authorization
string
header
required

Effective API key. Send Authorization: Bearer sk-eai-...

Path Parameters

id
string
required

Webhook endpoint ID: whk_ followed by 20 hex characters.

Pattern: ^whk_[0-9a-f]{20}$

Body

application/json
url
string

Public HTTPS URL that receives signed POST requests. Credentials in the URL and private or local hosts are rejected. Changing it makes you the endpoint's owner: underwriting extraction events then go to it only for submissions you can read.

Maximum string length: 2048
enabledEvents
enum<string>[]
Required array length: 1 - 14 elements

answer.completed and answer.failed fire when an answer finishes. session.message.completed and session.message.failed fire when the agent finishes replying to a message in a session started with POST /sessions, and session.message.needs_input when it stops to ask questions about that message. form_comparison.completed and form_comparison.failed fire when a form comparison finishes. loss_review.completed and loss_review.failed fire when a loss review finishes; saved partial matters remain available. osha.employer.event_added fires when an OSHA inspection, accident or other event first appears for an employer; it needs the OSHA dataset. rsl_log.written fires when a write to an RSL program’s log is kept: the log opening, and each write that records entries. underwriting_submission.extraction.completed and underwriting_submission.extraction.failed fire once when an extraction of an underwriting submission ends (failed also when it is cancelled), only to endpoints whose owner (who created the endpoint, or last changed its url) can read the submission. underwriting_submission.updated fires on each write to an underwriting submission’s log (a value set or accepted, a quote, a bind or a decline), with the log’s status after it, only to such endpoints; read the submission for its stage, rating and quotes.

Available options:
answer.completed,
answer.failed,
form_comparison.completed,
form_comparison.failed,
loss_review.completed,
loss_review.failed,
osha.employer.event_added,
rsl_log.written,
session.message.completed,
session.message.failed,
session.message.needs_input,
underwriting_submission.extraction.completed,
underwriting_submission.extraction.failed,
underwriting_submission.updated
filters
object

Replaces all filters. Send {} to clear them.

description
string | null

Your own note about what this endpoint is for.

Maximum string length: 500
status
enum<string>

Enable to resume an endpoint disabled for failing; only new events are sent.

Available options:
enabled,
disabled

Response

Updated endpoint.

id
string
required

Webhook endpoint ID: whk_ followed by 20 hex characters.

Pattern: ^whk_[0-9a-f]{20}$
url
string<uri>
required

Public HTTPS URL that receives signed POST requests. Credentials in the URL and private or local hosts are rejected.

description
string | null
required
enabledEvents
enum<string>[]
required

answer.completed and answer.failed fire when an answer finishes. session.message.completed and session.message.failed fire when the agent finishes replying to a message in a session started with POST /sessions, and session.message.needs_input when it stops to ask questions about that message. form_comparison.completed and form_comparison.failed fire when a form comparison finishes. loss_review.completed and loss_review.failed fire when a loss review finishes; saved partial matters remain available. osha.employer.event_added fires when an OSHA inspection, accident or other event first appears for an employer; it needs the OSHA dataset. rsl_log.written fires when a write to an RSL program’s log is kept: the log opening, and each write that records entries. underwriting_submission.extraction.completed and underwriting_submission.extraction.failed fire once when an extraction of an underwriting submission ends (failed also when it is cancelled), only to endpoints whose owner (who created the endpoint, or last changed its url) can read the submission. underwriting_submission.updated fires on each write to an underwriting submission’s log (a value set or accepted, a quote, a bind or a decline), with the log’s status after it, only to such endpoints; read the submission for its stage, rating and quotes.

Available options:
answer.completed,
answer.failed,
form_comparison.completed,
form_comparison.failed,
loss_review.completed,
loss_review.failed,
osha.employer.event_added,
rsl_log.written,
session.message.completed,
session.message.failed,
session.message.needs_input,
underwriting_submission.extraction.completed,
underwriting_submission.extraction.failed,
underwriting_submission.updated
filters
object
required
status
enum<string>
required

Disabled endpoints receive nothing until enabled again.

Available options:
enabled,
disabled
disabledReason
enum<string> | null
required

caller: you disabled it. failing: deliveries failed for three days, so it was disabled and its queued events were dropped. Null when enabled.

Available options:
caller,
failing,
null
createdAt
string<date-time>
required
updatedAt
string<date-time>
required