> For the complete documentation index, see [llms.txt](https://authentic.gitbook.io/authentic-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://authentic.gitbook.io/authentic-docs/embedding-insurance/data-share/sample-webhook-events.md).

# Sample Webhook Events

## **Sample payloads**

* **funnel.start** - customer visited the portal

{% code overflow="wrap" fullWidth="false" %}

```javascript
analytics.track('Insurance Portal Visited v2', {
  auth: {
    userId: 'us-east-1:27d3ecbe-5e18-c423-b01e-a20738bf0c09',
    isAuthenticated: false,
    isAdmin: false,
    adminTenantId: null,
    email: null
  },
  analytics: {
    sessionId: '82a739c4-12a5-5062-3e3d-b295h184b391',
    sessionReplayLink: null,
    urlParams: {},
    user: {
      id: 'us-east-1:22d7ecbe-8e76-c862-b09e-a93354bf9c54',
      properties: {
        tenantName: 'demo',
        tenantCustomerId: null,
        businessName: null,
        name: null,
        email: null,
        phoneNumber: null,
        mailingAddress: null
      }
    }
  },
  products: [
    {
      id: '57dfe67c-4449-4097-acf9-1c671dcd3d2d',
      name: 'General Liability',
      isOffered: true
    },
    {
      id: '5c7a1bef-fca1-41f6-b177-bc91de17009d',
      name: 'Property',
      isOffered: false
    },
    {
      id: '137233b3-2e6e-4799-b794-d16f4b6990c6',
      name: 'Worker\'s Compensation',
      isOffered: false
    }
  ],
  prefillData: null,
  lead: {
    stateCodes: [],
    productIds: [
      '57dfe67c-4449-4097-acf9-1c671dcd3d2d',
      '5c7a1bef-fca1-41f6-b177-bc91de17009d'
    ]
  },
  application: null,
  policies: []
});
```

{% endcode %}

* **funnel.quote\_generated** - at least one product was accepted for a quote

{% code overflow="wrap" fullWidth="false" %}

```javascript
analytics.track('Application Quotes Generated v2', {
  auth: {
    userId: 'us-east-1:27d3ecbe-5e18-c423-b01e-a20738bf0c09',
    isAuthenticated: false,
    isAdmin: false,
    adminTenantId: null,
    email: null
  },
  analytics: {
    sessionId: '04a646c3-64a4-8829-1e5d-b167h835b454',
    sessionReplayLink: null,
    urlParams: {},
    user: {
      id: 'us-east-1:27d3ecbe-5e18-c423-b01e-a20738bf0c09',
      properties: {
        tenantName: 'demo',
        tenantCustomerId: null,
        businessName: 'John\'s Business',
        name: 'John Smith',
        phoneNumber: 1234567890,
        mailingAddress: '41 E 11th St, Manhattan, NY 10003, US'
      }
    }
  },
  products: [
    {
      id: 'ebb9c622-a576-4340-9832-f95938d4c661',
      name: 'Gym Liability',
      isOffered: true
    },
    {
      id: '5c7a1bef-fca1-41f6-b177-bc91de17009d',
      name: 'Property',
      isOffered: false
    },
    {
      id: '137233b3-2e6e-4799-b794-d16f4b6990c6',
      name: 'Worker\'s Compensation',
      isOffered: false
    }
  ],
  prefillData: {
    responses: {
      questions: {
        BUSINESS_LEGAL_NAME: 'John\'s Business',
        NAME: 'John Smith',
        POLICY_START_DATE: new Date('2025-02-03T05:00:00.000Z')
      }
    }
  },
  lead: {
    stateCodes: [
      'OH'
    ],
    productIds: [
      'ebb9c622-a576-4340-9832-f95938d4c661',
      '5c7a1bef-fca1-41f6-b177-bc91de17009d'
    ],
    email: 'example@gmail.com',
    businessClassCode: '47011L'
  },
  application: {
    id: '3b72dbc4-bcb0-4d79-91b4-2072a8ec3522',
    status: 'APPROVED',
    step: 'QUOTE',
    responses: {
      exposures: [
        {
          id: 1,
          exposureName: 'business_location',
          fieldValues: {
            ADDRESS: '1 Main St, Cleveland, OH 45001, US',
            SALES: '200000',
            BPP_LIMIT_QP: '20000',
            AREA: '2000',
            EXPOSURE_CLASS_DESCRIPTION: 'Strength & Conditioning (CrossFit, HIIT, Bootcamp, Weightlifting, etc.)'
          }
        }
      ],
      questions: {
        EMAIL: 'example@gmail.com',
        CLASS_CODE: '47011L',
        CLASS_DESCRIPTION: 'Strength & Conditioning (CrossFit, HIIT, Bootcamp, Weightlifting, etc.)',
        MARKET_GROUP_LONG: 'All Other',
        MKTGRP: 'AO',
        MULTIPLE_STATES: 'No',
        ORIGIN_URL: 'https://demo.staging.authenticinsurance.com',
        TENANT_NAME: 'demo',
        TENANT_ID: 'bb60519f-7de5-80a6-ae91-4a26446f8a13',
        BUSINESS_LEGAL_NAME: 'John\'s Business',
        NAME: 'John Smith',
        POLICY_START_DATE: new Date('2025-02-03T05:00:00.000Z'),
        FRANCHISE_SELECTED: 'No',
        YRS_IN_BUSINESS: '4-6',
        FITNESS_STUDIO_FORBIDDEN_ACTIVITIES: 'None of the above',
        GENERIC_BUSINESS_MGMT_PRACTICES_DECLINE: 'None of the above',
        PRIOR_LOSS_BINARY: 'No',
        PL_CURRENT_COVERAGE: 'No',
        ATTACH_AL3020_DECGL1: 'No',
        EPLI_ELECT: 'No',
        ATTACH_AL3002_DECGL1: 'No',
        ADD_CONTRACTOR_ADDITIONAL_INSUREDS: 'No',
        ATTACH_CG2026: 'No',
        MAILING_ADDRESS: '41 E 11th St, Manhattan, NY 10003, US',
        PHONE: '1234567890'
      }
    },
    quotes: [
      {
        id: '963c6b2d-d50f-412a-8787-32ce39c577cc',
        productName: 'Professional Liability',
        limits: [
          {
            locationAddress: null,
            name: 'Professional Liability Deductible',
            amountPerOccurrence: 1000,
            amountInAggregate: null
          },
          {
            locationAddress: null,
            name: 'Professional Liability Limit',
            amountPerOccurrence: 1000000,
            amountInAggregate: 1000000
          }
        ],
        adjustments: {
          ACCOUNT_CREDIT_DISCOUNT_VALUE: -24.002499999999998
        },
        annualPremium: 456.05,
        underwritingNotes: {}
      },
      {
        id: 'c2e67d62-220f-4106-a446-d9bdb49aba84',
        productName: 'General Liability',
        limits: [
          {
            locationAddress: null,
            name: 'Damage to Premises Rented to You Limit',
            amountPerOccurrence: 300000,
            amountInAggregate: null
          },
          {
            locationAddress: null,
            name: 'General Liability Limit of Insurance',
            amountPerOccurrence: 1000000,
            amountInAggregate: 3000000
          },
          {
            locationAddress: null,
            name: 'Medical Payments Limit',
            amountPerOccurrence: 10000,
            amountInAggregate: null
          },
          {
            locationAddress: null,
            name: 'Personal and Advertising Injury Limit',
            amountPerOccurrence: 1000000,
            amountInAggregate: null
          },
          {
            locationAddress: null,
            name: 'Products-Completed Operations Limit',
            amountPerOccurrence: 1000000,
            amountInAggregate: 2000000
          },
          {
            locationAddress: null,
            name: 'Sexual Abuse & Molestation Limit',
            amountPerOccurrence: 300000,
            amountInAggregate: 600000
          }
        ],
        adjustments: {
          ACCOUNT_CREDIT_DISCOUNT_VALUE: -31.649000000000022
        },
        annualPremium: 601.33,
        underwritingNotes: {}
      },
      {
        id: '2d0fec86-cc0f-4f24-b414-0760a82fad02',
        productName: 'Property',
        limits: [
          {
            locationAddress: {
              street: '1 Main St',
              city: 'Cleveland',
              state: 'OH',
              zipCode: '45001',
              country: 'US'
            },
            name: 'All Other Perils Deductible',
            amountPerOccurrence: 1000,
            amountInAggregate: null
          },
          {
            locationAddress: {
              street: '1 Main St',
              city: 'Cleveland',
              state: 'OH',
              zipCode: '45001',
              country: 'US'
            },
            name: 'Business Personal Property Limit',
            amountPerOccurrence: 20000,
            amountInAggregate: null
          }
        ],
        adjustments: {
          ACCOUNT_CREDIT_DISCOUNT_VALUE: -6.620000000000006
        },
        annualPremium: 125.78,
        underwritingNotes: {}
      }
    ],
    quotesAnnualPremium: 1183.16,
    quotesPremiumFinanceEstimate: {
      downPaymentAmount: 236.63,
      financedAmount: 946.53,
      installmentAmount: 106.62,
      numInstallments: 10,
      firstInstallmentDueDateTimestamp: 1740960000000
    }
  },
  policies: []
});
```

{% endcode %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://authentic.gitbook.io/authentic-docs/embedding-insurance/data-share/sample-webhook-events.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
