Skip to main content

Create Your First Form

1

Create Account

Sign up for a free account at spike.ac/register. No credit card required.
2

Create Form

In your dashboard, click New Form and give it a name. You’ll get a unique form slug like abc123xyz.
3

Add Form to Site

Add this HTML to your website:
<form action="https://spike.ac/api/f/YOUR_FORM_SLUG" method="POST">
  <input type="email" name="email" placeholder="Your email" required>
  <textarea name="message" placeholder="Your message" required></textarea>
  <button type="submit">Send</button>
</form>
Replace YOUR_FORM_SLUG with your actual form slug.
4

Test It

Submit your form. You’ll receive an email notification and see the submission in your dashboard.

Add Spam Protection

Add a honeypot field to catch bots:
<form action="https://spike.ac/api/f/YOUR_FORM_SLUG" method="POST">
  <input type="email" name="email" required>
  <textarea name="message" required></textarea>
  
  <!-- Honeypot - hide this with CSS -->
  <input type="text" name="_gotcha" style="display:none">
  
  <button type="submit">Send</button>
</form>

Add Custom Redirect

Redirect users after submission:
<form action="https://spike.ac/api/f/YOUR_FORM_SLUG" method="POST">
  <input type="hidden" name="_next" value="https://yoursite.com/thanks">
  <input type="email" name="email" required>
  <button type="submit">Send</button>
</form>

AJAX Submission

For single-page apps, submit via JavaScript:
const response = await fetch('https://spike.ac/api/f/YOUR_FORM_SLUG', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
    'Accept': 'application/json'
  },
  body: JSON.stringify({
    email: '[email protected]',
    message: 'Hello!'
  })
});

const result = await response.json();

Next Steps