Updated 23 November 2026
You can receive the messages from your site's forms by connecting them to a WebForms.to form. The free plan covers 300 submissions a month.
How forms send
Forms post JSON to the address in forms.endpoint in content/owner.ts. The JSON holds subject, page, fields (a list of label and value), replyTo, consent and website. website is a hidden field that catches spam bots.
The endpoint must answer with { "ok": true }. With no endpoint set, a form shows that it cannot send.
Templates with a database store their messages themselves, so they do not need an endpoint. See Accounts and database.
About WebForms.to
The free plan has 300 submissions a month. Spam never counts toward that number, and no card is required. Spam protection on every plan uses honeypot fields, time traps, disposable-email detection and an AI classifier. You can add Cloudflare Turnstile, hCaptcha or reCAPTCHA.
The endpoint is https://send.webforms.to/<key>. It accepts a form post or JSON with flat fields, for example {"email": "...", "message": "..."}. Fields that start with an underscore are instructions to WebForms.to: _replyto, _subject, _gotcha (the spam trap) and _redirect.
A successful send returns {"ok": true, "id": "...", "message": "..."}. An error returns {"ok": false, "error": "<code>", "message": "..."}. The status is 422 for a validation error, 429 for a rate limit and 402 when you are over your quota.
Connect your forms to WebForms.to
- Create an account at WebForms.to.
- Create a form in your account.
- Copy the endpoint,
https://send.webforms.to/<key>. - Open
content/owner.tsand setforms: { endpoint: "https://send.webforms.to/<key>" }with your own key. - Give your AI agent the prompt in
prompts/06-connect-forms-webforms.md. The template form sends a nestedfieldslist, and WebForms.to expects flat fields. The prompt has the agent switch the form to flat fields: each label becomes a field name,replyTobecomes_replytoandwebsitebecomes_gotcha. The{ "ok": true }check already matches. See AI agents. - Run
npm run dev, open a page with a form, fill it in and send it. - Check that the form shows a success message and that the submission appears in your WebForms.to account.
Let your AI agent create the form
WebForms.to has an MCP server and a REST API, so an agent can create the form and read submissions for you. MCP and API access are on the Pro and Agency plans. On the Free plan, create the form in the WebForms.to dashboard and give the endpoint to your agent.
Through the MCP server an agent can create forms (create_form returns the endpoint and a ready HTML form), update them (spam sensitivity, allowed sites, thank-you page) and read submissions. The MCP server is at https://agents.webforms.to. Sign in with OAuth, or use an API key as a bearer token.
Set it up in your agent:
- Claude Code: run
claude mcp add --transport http webforms https://agents.webforms.to, then type/mcpto sign in. - Codex: run
codex mcp add webforms --url https://agents.webforms.to, thencodex mcp login webforms. - Cursor: add this to
~/.cursor/mcp.json:
{"mcpServers":{"webforms":{"url":"https://agents.webforms.to"}}}
The REST API is at https://api.webforms.to/v1. A POST /v1/forms request with {"name": "Contact form"} creates a form with a live endpoint. The API key needs the forms:write scope.
After the agent has the endpoint, it follows prompts/06-connect-forms-webforms.md to connect the site.
Forms on a static site
Forms work on a static site because they send to the endpoint and not to your server. Set the endpoint before you build with npm run build.
