Forms Quickstart
Get started building forms with SpamBlock Forms
Step 1: Create an Account
Sign up for a free account - no credit card required.
Step 2: Create Your First Form
- Go to your dashboard
- Create a new form to get your
form_id - Configure settings (email notifications, webhooks, etc.)
Step 3: Submit Form Data to the Endpoint
POST your form data to the SpamBlock Forms endpoint:
https://api.spamblock.io/f/{form_id}
You can use any HTTP client (Fetch, Axios, jQuery, etc.) or any backend language to send form submissions. All submissions are automatically scored for spam at the edge.
Example using Fetch API:
const formData = new FormData(form);
const response = await fetch(`https://api.spamblock.io/f/${formId}`, {
method: 'POST',
body: formData
});
Step 4: View and Manage Submissions
All submissions appear in your dashboard with:
- Real-time analytics
- Spam filtering (automatic)
- Export options (CSV/JSON)
You can also:
- Subscribe to email updates - Get notified when new submissions arrive
- Configure webhooks - Send submission data to your own endpoints
- Integrate other services - Connect with your existing tools
Next Steps
- Learn more about Forms features
- See implementation examples