# Data Sharing via Widget

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

```typescript
authenticWidget.init({
  portal: {
    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:

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

{% hint style="info" %}
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.
{% endhint %}

Please visit the [Commonly Prefilled Questions](https://authentic.gitbook.io/authentic-docs/embedding-insurance/data-share/commonly-prefilled-questions) 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.
