Contact Us
A classic contact form: name, email and a message.
Forms
Pick a ready-made form, edit it in the builder, and paste the snippet. Or post from your own backend. Everything ends up in the same submissions inbox.
Embed & API
<div data-inputdock="pk_your_public_key"></div>
<script src="https://cdn.inputdock.com/v1/embed.js" async></script><div
data-inputdock="pk_your_public_key"
data-theme="auto"
data-accent="#8ac926"
data-radius="12"
data-values='{"ref":"newsletter"}'
data-css="/my-form.css"
></div>
<script src="https://cdn.inputdock.com/v1/embed.js" async></script>// Mount into any element, any time (SPA route change, modal open…)
InputDock.mount(document.querySelector('#contact'), {
key: 'pk_your_public_key',
theme: 'dark',
accent: '#8ac926',
values: { ref: 'pricing-page' },
})
document.addEventListener('inputdock:submitted', (event) => {
console.log('Submission id', event.detail.id)
})# Server-to-server: use the PRIVATE key, never in a browser
curl -X POST https://api.inputdock.com/api/v1/form/submit \
-H "Accept: application/json" \
-H "X-Form-Key: your_private_key" \
-d "name=Maya Patel" \
-d "[email protected]" \
-d "message=Hello from my backend"Using React, Next.js, Astro, WordPress, Webflow or Shopify? See the framework guides. Server-side examples in Node and PHP are in the API reference.
The public key is safe to publish. The private key is only for server-to-server posts, so keep it out of the browser.
Widget options
The full list, with prefill, styling and CSS variables, is in the Integration guide.
data-themelight | dark | auto
Widget colour scheme. Auto follows the visitor’s system.
data-accent#8ac926
Overrides the accent colour set on the form.
data-radius12
Corner radius in pixels.
data-values{"ref":"x"}
Prefill fields; also feeds hidden fields.
data-css/my-form.css
A stylesheet loaded inside the form, for custom field classes.
Events
Events bubble up from the element you placed, so you can track conversions or close a modal. Event details.
inputdock:readyThe form has loaded and rendered.
inputdock:submittedA submission was accepted. detail.id holds its id.
inputdock:errorLoading or sending failed. detail has status and message.
Protection
Exact limits and error codes are in the API reference.
✓Allowed websites
Limit a form to your own sites. Wildcards such as https://*.example.com work, and an empty list allows any site.
✓Rate limits
Loading and submitting are throttled per IP address, so floods are rejected early.
✓Honeypot field
A hidden field real people never fill in. Bots do, and their submission is quietly dropped.
✓Minimum fill time
Submissions that arrive impossibly fast are treated as bots.
✓Safe retries
The widget sends an idempotency key, so double clicks and retries never create duplicates.
✓Server-side validation
Every rule you set in the builder is re-checked on the server.
Templates
Every template is fully editable in the form builder and ready to embed. Pick one, change the questions, publish.
A classic contact form: name, email and a message.
Collect a rating and a short comment from visitors.
Let guests confirm attendance, bring a plus-one and share dietary needs.
Triage incoming support tickets by category and priority.
A three-step application: about the candidate, experience and links.
Learn about a new customer in steps: company, goals and preferences.
Ask follow-up questions only when they apply: company details for businesses, budget for buyers.
Shows only the questions that match the reason for the return.
No templates match your search.
Documentation
Frameworks and site builders, every option, prefill, styling with CSS variables, events, CSP and troubleshooting.
Read the docs →Submit from your server. Request and response bodies, validation rules, errors and rate limits.
Read the docs →Create forms, use the builder, tune settings, work through submissions and manage your account and billing.
Read the docs →Keys live in the dashboard
Each form’s edit page shows its embed code with the right public key already filled in, and lets you rotate the public and private keys.