HTML forms
Plain HTML forms, special fields and redirects.
Any <form> with method="POST" and the action https://app.submityourform.com/f works. Fields are delivered with the names you give them.
Special fields
| Field | What it does |
|---|---|
_form_key | Required. Which form receives the submission. You can also post to https://app.submityourform.com/f/YOUR-FORM-KEY instead. |
_subject | Email subject for this submission (otherwise the form's default). |
_from_name | Name shown as the sender of the notification email. |
_reply_to | Address that Reply goes to. By default we use the submitter's email field. |
_redirect | Where to send the browser after a successful submit (your thank-you page). Must be on an allowed domain if you restrict domains. |
_cc | Extra notification recipients, separated by commas or semicolons (paid plans). Only addresses verified under Account settings → Linked emails receive a copy; others are ignored, so the field can't be used to email strangers. |
_honeypot | Honeypot: keep it hidden and empty. Submissions that fill it are filed as spam. Use <input type="text" name="_honeypot" tabindex="-1" autocomplete="off" style="display:none">. |
_test | 1 or true marks the submission as a test (see Test mode). |
_files | Keys of files uploaded beforehand with the upload API, separated by commas (see File uploads). |
_webhook | An extra https:// URL that receives this one submission as a webhook, in addition to the form's integrations (paid plans). For safety it is only used when its host is listed in the form's Settings → Spam & security → Allowed webhook hosts (*.example.com allows subdomains); otherwise it is ignored. Private or internal addresses are always refused. |
Control fields (starting with _) and captcha tokens are not stored as submission data.
What the browser sees
A plain HTML form is redirected (HTTP 303) to _redirect, or to our hosted thank-you page. If the request asks for JSON (Accept: application/json, or a JSON body), you get JSON instead:
{ "ok": true, "id": "sub_…", "test": false, "held": false,
"message": "Thanks! Your submission was received.", "data": { "name": "Ada" } }
held: true means your monthly limit was reached: the submission is stored and delivered as soon as there's room again (it counts towards the month in which it is released).
If something goes wrong, a JSON request gets { "ok": false, "error": { "code": "…", "message": "…" } } with a 4xx status. A plain HTML form gets a short error page that explains the problem and links back to the form. All codes are listed on Errors.
Rate limits
To stop floods, each form accepts a limited number of submissions per visitor (IP address) per hour, and each workspace a limited number per minute. The defaults are generous for normal forms (60 per IP per form per hour); over the limit, requests are refused with RATE_LIMITED (HTTP 429). Test submissions are limited to 30 per form per hour. Ask us if a form needs higher limits.
Submitting with JavaScript
<form id="contact">
<input type="hidden" name="_form_key" value="YOUR-FORM-KEY">
<input type="email" name="email" required>
<textarea name="message" required></textarea>
<input type="text" name="_honeypot" tabindex="-1" autocomplete="off" style="display:none">
<button type="submit">Send</button>
</form>
const form = document.querySelector('#contact');
form.addEventListener('submit', async (e) => {
e.preventDefault();
const res = await fetch('https://app.submityourform.com/f', {
method: 'POST',
headers: { 'Accept': 'application/json' },
body: new FormData(form)
});
const json = await res.json().catch(() => ({}));
if (res.ok && json.ok) form.reset();
else alert(json.error?.message ?? 'Something went wrong. Please try again.');
});
Use FormData (as above) when the form has file inputs; otherwise JSON works too. When posting JSON, include _form_key in the body. Errors always have the shape { "ok": false, "error": { "code", "message", "fields", "docs" } }; see Error codes.