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

# Deep Links

> Preselect material, shape, and color before a homeowner starts the public visualizer.

## Deep-link contract

Public visualizer and embed URLs support three stable query parameters that preselect roof choices before the homeowner interacts with the visualizer.

| Param | Value | Example |
| - | - | - |
| material | Public catalog material id | lib-tiles |
| shape | Stable shape key for the selected material | high\_barrel |
| color | Public catalog color id after material and shape filtering | westlake-fn-barcelona-900-avalonbeachblend |

> [!WARNING]
>
> **Tiles is not a query param**
>
> Use material=lib-tiles for tile roofs. There is no supported tiles query parameter.

## Resolution rules

* Parameter names are lowercase.
* Values are trimmed and matched exactly.
* Empty values are ignored.
* Repeated params use the first non-empty value.
* An old link can carry a brand parameter. RoofKit accepts it and ignores it.
* Invalid material drops shape and color.
* Invalid or incompatible shape drops color.
* Invalid color drops only color.
* Shingle selections do not require shape; any supplied shape value is ignored for shingles.
* Invalid params never show homeowner-facing errors.

## Examples

```text Standalone visualizer theme={null}
https://roofkit.site/v/roofer-123?material=lib-tiles&shape=high_barrel&color=westlake-fn-barcelona-900-avalonbeachblend
```

```text Landing-specific visualizer theme={null}
https://roofkit.site/v/roofer-123/l/storm-damage?material=lib-tiles&shape=high_barrel&color=westlake-fn-barcelona-900-avalonbeachblend
```

```text Button widget host page theme={null}
https://contractor.example/roof-replacement?material=lib-tiles&shape=high_barrel&color=westlake-fn-barcelona-900-avalonbeachblend
```

```text Inline install host page theme={null}
https://contractor.example/estimate?material=lib-tiles&shape=high_barrel&color=westlake-fn-barcelona-900-avalonbeachblend
```

```text Direct embed URL theme={null}
https://roofkit.site/embed/v/roofer-123/l/storm-damage?material=lib-tiles&shape=high_barrel&color=westlake-fn-barcelona-900-avalonbeachblend
```

```text Custom domain landing theme={null}
https://visualizer.contractor.example/l/storm-damage?material=lib-tiles&shape=high_barrel&color=westlake-fn-barcelona-900-avalonbeachblend
```

## Implementation notes

For the button widget and the one-line inline script, add deep-link params to the contractor host page URL. RoofKit forwards those params into the iframe. A direct embed URL still accepts the same params.

> [!TIP]
>
> **Catalog source of truth**
>
> Valid values must come from the products the landing offers. Confirm in **Settings › Products & Pricing** that a product of the landing offers the color.


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