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

# Widgets

> Use the Replied widget to collect website messages.

The widget posts messages to Replied through your API key.

## Install

```html theme={null}
<script src="https://replied.dk/widget.js" data-key="YOUR_API_KEY"></script>
```

## Validate setup

* The script loads without console errors.
* The website origin matches API key settings.
* A test message appears in the dashboard.
* Raw payload fields look correct.

## Developer touchpoints

* Widget script delivery.
* Submit endpoint.
* Origin validation.
* Widget event handling.
