> ## Documentation Index
> Fetch the complete documentation index at: https://docs.fletch.co/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Fletch makes insurance products discoverable to and purchasable by AI agents, while the carrier keeps control of product rules, disclosures, consent, and payments. Fletch provides agentic commerce and agentic distribution for insurance, including APIs, an MCP server, a Web SDK, and journeys in assistants such as ChatGPT. Company overview: https://fletch.co/llms.txt. Agentic commerce: https://fletch.co/ai/. Contact: info@fletch.co.

# Web SDK Parameters

> Review every attribute that the fletch-app element supports.

Set parameters as attributes on the `<fletch-app>` element.

```html theme={"dark"}
<fletch-app widget-url="https://partner.fletch.co/ver=1/"></fletch-app>
```

## widget-url

**Required.** Set `widget-url` to the full URL that Fletch provides. Use an absolute `https://` address.

```html theme={"dark"}
<fletch-app widget-url="https://partner.fletch.co/ver=1/"></fletch-app>
```

## app-origin

**Optional.** Default: taken from `widget-url`.

Set the trusted Fletch origin for automatic resizing. Set `app-origin` only when `widget-url` is a tracking or redirect link. The SDK cannot get the Fletch origin from these links.

```html theme={"dark"}
<fletch-app
  widget-url="https://track.example.com/c/4386764/3907452/13439"
  app-origin="https://partner.fletch.co"
></fletch-app>
```

## height

**Optional.** Default: `600px`.

Set the widget's starting height. When `resize` is `true`, the widget changes its height to fit its content. When `resize` is `false`, this value sets the fixed height.

```html theme={"dark"}
<fletch-app widget-url="https://partner.fletch.co/ver=1/" height="700px"></fletch-app>
```

## width

**Optional.** No default.

The width of the widget, for example `100%` or `480px`. If you leave it out, you can control the width with `iframe-style` or your own CSS.

```html theme={"dark"}
<fletch-app widget-url="https://partner.fletch.co/ver=1/" width="100%"></fletch-app>
```

## resize

**Optional.** Default: `true`.

Set `resize` to `true` to fit the widget to its content. Set it to `false` to use the fixed `height` value.

```html theme={"dark"}
<fletch-app
  widget-url="https://partner.fletch.co/ver=1/"
  resize="false"
  height="500px"
></fletch-app>
```

## sync-query-params

**Optional.** Default: `true`.

Set `sync-query-params` to `true` to pass your page's URL parameters to the widget. If both URLs contain a parameter, the widget uses your page's value. Set `sync-query-params` to `false` to stop this behavior.

```html theme={"dark"}
<fletch-app widget-url="https://partner.fletch.co/ver=1/" sync-query-params="false"></fletch-app>
```

## iframe-style

**Optional.** No default.

CSS applied to the widget frame itself, such as borders, rounded corners, or shadows.

```html theme={"dark"}
<fletch-app
  widget-url="https://partner.fletch.co/ver=1/"
  iframe-style="border-radius: 0; box-shadow: none;"
></fletch-app>
```

## debug

**Optional.** Default: `false`.

Set `debug` to `true` to log diagnostic messages to the browser console. Use this setting during setup. Set it to `false` in production.

```html theme={"dark"}
<fletch-app widget-url="https://partner.fletch.co/ver=1/" debug="true"></fletch-app>
```

## style and class

**Optional.** Style the outer container around the widget, like any other HTML element. To style the widget frame itself, use `iframe-style` instead.

```html theme={"dark"}
<fletch-app
  widget-url="https://partner.fletch.co/ver=1/"
  style="max-width: 600px; margin: 0 auto;"
></fletch-app>
```

## Standard iframe attributes

**Optional.** Standard iframe attributes such as `title`, `loading`, `allow`, `sandbox`, and `referrerpolicy` are passed straight through to the widget frame. We recommend always setting `title` so the widget is accessible to screen readers.

```html theme={"dark"}
<fletch-app
  widget-url="https://partner.fletch.co/ver=1/"
  title="Pet insurance quote"
  loading="lazy"
></fletch-app>
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.