Docs menu

Partners & embedding

Embedding Kinro

Add Kinro's commercial insurance quote experience to your website or web app with one script tag, optional prefill, and secure handling of sensitive steps.

View as Markdown

Add Kinro's commercial insurance quote experience directly to your website or web app with a single script tag and no iframes.

1. Add the script

Include embed.js on your approved website origins, using the partner ID Kinro gives you:

html
<script
  src="https://kinro.com/partners/embed.js"
  data-partner="YOUR_PARTNER_ID"
  defer
></script>

Without an inline container, the script adds a floating quote button that opens a modal. Set data-launcher="none" to hide the button when opening the modal from your own UI.

2. Place inline or open from your own UI

To render the quote experience directly inside a page section, add a container with data-kinro-inline:

html
<div data-kinro-inline data-placement="dashboard_card"></div>

A container can set its own data-partner when one page hosts quote experiences for more than one of your partner IDs; otherwise the script's data-partner applies.

For single-page apps or custom buttons, use window.Kinro:

  • window.Kinro.mount(element, { placement, customerToken }) mounts an inline quote view inside element.
  • window.Kinro.unmount(element) removes an inline mount when your view unmounts.
  • window.Kinro.open({ placement, customerToken }) and window.Kinro.close() open or close the modal dialog.
  • window.Kinro.on(event, handler) and window.Kinro.off(event, handler) let you listen for ready, opened, closed, application_started, application_submitted, quote_ready and error.

3. Skip questions your app already knows

If your users are already signed into your platform, you can prefill their business details so they do not have to re-type them:

  1. From your backend, call upsert_lead on https://api.kinro.com/mcp with the business details you already know and mint_customer_token: true (see Partners and brokers).
  2. Pass the returned short-lived customer_token to window.Kinro.mount(el, { customerToken }) or window.Kinro.open({ customerToken }) in memory.
  3. Never place a customer_token in a URL, cookie or localStorage.

How styling and sensitive information stay safe

  • Isolated styling, no iframe glitches. The widget isolates its styles from your site without relying on iframes or third-party cookies, so it resizes naturally inside any container or modal.
  • Sensitive steps stay on kinro.com. The embedded widget runs in your page and can display information that has already been provided for the request. For form steps that require sensitive identifiers (such as a tax ID, date of birth, driver's license or banking details) or document uploads, the widget shows a button that opens a secure kinro.com page in a new tab.