> ## 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.

# Create Forms

> Send website form submissions to Replied.

Use forms when you already have a website form and want Replied to handle the message workflow.

## Required fields

| Field     | Type   | Notes                  |
| --------- | ------ | ---------------------- |
| `name`    | string | Sender name.           |
| `email`   | string | Sender email.          |
| `message` | string | Main customer message. |

Optional fields include `phone`, `subject`, and any extra fields your form collects.

## Submit from JavaScript

```js theme={null}
await fetch('https://www.replied.dk/api/v1/submit/YOUR_API_KEY', {
  method: 'POST',
  headers: { 'Content-Type': 'application/json' },
  body: JSON.stringify({
    name: 'Ada Lovelace',
    email: 'ada@example.com',
    subject: 'Demo request',
    message: 'I want to learn more about Replied.'
  })
});
```

## Avoid breaking

* Keep `Content-Type` set to `application/json`.
* Keep the API key tied to the right workspace.
* Keep extra fields small and useful.
