Authentic
AuthenticContact
  • Authentic 101
    • About Authentic
    • Company Background
    • Customer Reviews
    • How Authentic Works
      • Captive Insurance
      • Business Owner's Policy
      • Coverage Options
      • Our Partner Appetite
        • Exclusions
        • Endorsements
  • Embedding Insurance
    • Integration Overview
    • Add Insurance to Your Platform
      • Embed our widget
        • Accessing Event Data through Webhooks
      • Different endpoints & functionality within our widget
        • Instant Estimate (/estimate)
        • Welcome Page (/welcome)
        • Direct to Lead Form (/apply)
        • Policy Hub (/policy)
    • Data Share
      • Data Sharing via Widget
      • Data Sharing via URL
      • Commonly Prefilled Questions
      • SMB Class Codes
      • Data Capture (Easy Webhook Set Up)
      • Sample Webhook Events
    • Authentic User Verification Offering(s)
    • Custom Insurance Domain
    • Tracking Marketing (UTM Params)
  • Go To Market
    • Go To Market for SaaS Partners
      • Create Access Points
      • Buying Triggers
      • Prequote Marketing Emails
        • Authentic-Led Prequote Campaigns
        • Tenant-Led Prequote Campaigns
        • URL Prefill Instructions
    • Brand Assets + Marketing Templates
    • Generating Estimate Links
  • More Reading
    • Learn More about Authentic!
    • Why Authentic?
  • Support
    • FAQs
Powered by GitBook
On this page
Export as PDF
  1. Embedding Insurance
  2. Data Share

Data Sharing via Widget

Here is a guide to pre-filling authentic application question fields through our embedded widget

You can pre-fill data about your customer by passing in their information to the prefillData key of the widget configuration:

authenticWidget.init({
  insurancePortal: {
    url: "https://<tenant-name>.<environment>.authenticinsurance.com",
  },
  customerId: "unique_cid1",
  prefillData: {
    lead: {
      email: "customer@email.com",
      stateCodes: ["OH"],
    },
    responses: {
      exposures: [{
        exposureName: "business_location",
        fieldValues: {
          "ADDRESS": "100 street, UNIT 2, city, OH 33333, US",
        }
      }],
      questions: {
        "BUSINESS_LEGAL_NAME": "Customer Business Name",
        "NAME": "Customer Full Name"
      }
    }
  }
});

The complete interface for PrefillData is shown below:

interface PrefillData {
  lead?: {
    email?: string;
    businessClassCode?: string;
    stateCodes?: string[];
    productIds?: string[];
  };
  responses?: {
    exposures?: Array<{
      exposureName: string;
      fieldValues: Record<string, string>;
    }>;
    questions?: Record<string, string>;
  };
};

Each exposure is uniquely identified by an ID. This can be as simple as the index of the element in the array or a unique UUID.

PreviousData ShareNextData Sharing via URL

Last updated 3 months ago

Please visit the section to find the full data dictionary of the fields that can be passed in. Specifically, please see the first table, Fields for Widget Integration.

Commonly Prefilled Questions