FormsPool Endpoint & Integration Documentation
Everything you need to connect an HTML form, JavaScript client, or CI-managed project to FormsPool endpoints.
1. Public submission endpoint
Every Dashboard form generates a unique public URL in the format https://formspool.com/f/{public_id}. Submitting to this URL never requires exposing a private management key in browser code, and the public URL cannot be used to read historical submissions.
<form action="https://formspool.com/f/YOUR_FORM_ID" method="POST">
<label>Email
<input type="email" name="email" required />
</label>
<label>Message
<textarea name="message" required></textarea>
</label>
<!-- Optional honeypot anti-spam field -->
<input type="text" name="_gotcha" style="display:none" tabindex="-1" autocomplete="off" />
<button type="submit">Send Message</button>
</form>2. Special underscore fields
Fields prefixed with an underscore control FormsPool behavior and are excluded from regular CSV data columns.
| Field Name | Purpose |
|---|---|
_gotcha or _honey | Hidden honeypot trap. If populated by a bot, the entry is tagged as spam and actions are suppressed. |
_next | Optional redirect override URL for standard HTML POST submissions when no higher-priority Rule redirect matches. |
3. Response behavior and validation errors
FormsPool inspects the Accept header to choose between browser redirects and JSON responses. For full frontend error handling code, follow the AJAX form submission guide and configure server checks in spam protection.
4. Command Line Project configuration (formspool.json)
Teams practicing GitOps can organize forms inside a Command Line Project and track endpoints, validations, and routing rules alongside their repository:
{
"project": "Marketing Site",
"timezone": "UTC",
"forms": {
"contact": {
"name": "Contact Us",
"actions": [{ "type": "email", "to": "[email protected]" }],
"fields": {
"email": { "type": "email", "required": true },
"message": { "type": "text", "required": true, "minLen": 10 }
}
}
}
}