DECISION_DOCUMENT_GENERATED Event

This webhook event is sent when an underwriting decision document is automatically generated by the system. These documents contain the formal underwriting decision and related information.

When This Event Is Sent

  • A underwriting decision document is generated after a UNDERWRITING_DECISION_STATUS passes to ACCEPTED when the account config auto_defense_document_for_approved_application is true.
  • The endpoint workflow.defenseDocument.generate is used.
  • A user generates a defense document from the Underwriters Dashboard.

Decrypted Data Parameters

This event includes all default parameter for version 1.0 in the decrypted data parameter, plus the following parameters:

ParameterTypeRequiredDescription
decision_document_idstringYesThe identifier for the generated decision document (format: wdd_XXXXX...).

Example Payload

Note: This example shows the decrypted payload. When you receive this webhook, the data field will be encrypted. See the encryption reminder for details.

{
  "id": "wh_2WflNCAmGzD1hEYUUGANOL",
  "event_type": "DECISION_DOCUMENT_GENERATED",
  "timestamp": "2026-03-17T21:55:42Z",
  "account_id": "account_id",
  "schema_version": "2025-11-21",
  "key_id": "whk_20260317_01",
  "data": {
    "version": "1.0",
    "subject_record_id": "sr_6oDTOBvkAAGc2Wzvkd1NO8",
    "workflow_id": "w_36wIK6Kevgj2SiEE5ktCM4",
    "workflow_type": "BUSINESS_UNDERWRITING",
    "user_context": {
      "user_id": "SYSTEM",
      "user_type": "SYSTEM"
    },
    "decision_document_id": "wdd_3uqAs8oc33WiLF27hTgK0H"
  }
}

Using the Decision Document

After receiving this webhook, you can use the decision_document_id to download the document via the workflow.defenseDocument.getDownload