Deep-link contract
Public visualizer and embed URLs support three stable query parameters that preselect roof choices before the homeowner interacts with the visualizer.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
Standalone visualizer
Landing-specific visualizer
Button widget host page
Inline install host page
Direct embed URL
Custom domain landing
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.Catalog source of truthValid values must come from the products the landing offers. Confirm in Settings › Products & Pricing that a product of the landing offers the color.