Get an endpoint
Formhaus Cloud hosts the submission endpoint for a definition. Full documentation is in the Cloud section.
Publish
Connect the remote MCP server:
bash
claude mcp add --transport http formhaus https://api.formhaus.dev/mcpAsk the agent:
text
Create a waitlist form with an email field and publish it.publish_form returns form_id, endpoint, hosted_url, embed_snippet, react_snippet, vue_snippet and, without an account key, claim_url and agent_key. See Quickstart for the local server, the plugin and every result field.
Put the form on a site
| Way | Snippet |
|---|---|
| Hosted link | https://f.formhaus.dev/{form_id} |
| Embed | <script src="https://f.formhaus.dev/embed.js" data-form="{form_id}" async></script> |
| React | import { FormhausForm } from '@formhaus/react/cloud' and <FormhausForm id="{form_id}" /> |
| Vue | import { FormhausForm } from '@formhaus/vue/cloud' and <FormhausForm id="{form_id}" /> |
| POST JSON | POST https://api.formhaus.dev/f/{form_id} with { "values": {...}, "skippedSteps": [] } |
Props, status codes, Idempotency-Key and validation rules are in Collecting submissions.