Quickstart: Your First Form Endpoint in 2 Minutes
Connect your first website form endpoint in under two minutes — create a form, copy the endpoint, and submit a test POST from any HTML page.
What is the core specification for quickstart: your first form endpoint in 2 minutes?
To get started with Form2Lead, create a new Form in your dashboard, copy your unique endpoint URL (`https://form2lead.com/api/v1/f/YOUR_FORM_ID`), and paste it into your HTML form action attribute with method="POST". Form2Lead validates the payload, blocks spam, emails you the lead, and stores it in your dashboard — with zero backend code.
<form action="https://form2lead.com/api/v1/f/YOUR_FORM_ID" method="POST"> <input name="name" required placeholder="Name" /> <input name="email" type="email" required placeholder="Email" /> <button type="submit">Submit</button> </form>
Step 1: Create a form endpoint
Sign in to your Form2Lead dashboard, create a project, and click "New Form". The dashboard generates a unique public endpoint URL per form — that URL is the only thing your website needs to talk to.
Step 2: Point your form at the endpoint
Set your <form> element action attribute to the endpoint URL and keep method="POST". Every input that has a name attribute is delivered as a field in your submission. No JavaScript, SDK, or server code is required for a plain HTML page.
Step 3: Verify delivery
Submit a test entry. You should receive a formatted email notification within seconds and see the submission appear in your dashboard inbox. If you set an allowed-domains list, remember to include your site origin before testing from a browser.
Quickstart: Your First Form Endpoint in 2 Minutes FAQ
Do I need JavaScript to submit a form to Form2Lead?
No. Plain HTML forms with method="POST" submit directly to Form2Lead with zero client-side JavaScript. fetch() or Axios are optional alternatives for AJAX submissions.
Can I add the honeypot spam field to my quickstart form?
Yes — add <input type="text" name="_gotcha" style="display:none" tabindex="-1" autocomplete="off" /> to your form and Form2Lead silently rejects bots that fill it.