Documentation Index
Fetch the complete documentation index at: https://docs.spike.ac/llms.txt
Use this file to discover all available pages before exploring further.
Create Form
In your dashboard, click New Form and give it a name. You’ll get a unique form slug like abc123xyz.
Add Form to Site
Add this HTML to your website:<form action="https://api.spike.ac/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. 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://api.spike.ac/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://api.spike.ac/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://api.spike.ac/f/YOUR_FORM_SLUG', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Accept': 'application/json'
},
body: JSON.stringify({
email: 'user@example.com',
message: 'Hello!'
})
});
const result = await response.json();
Next Steps
Email Notifications
Configure email settings
Spam Protection
Set up reCAPTCHA
Webhooks
Send data to your server
React Integration
Use with React