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.
Endpoint
No authentication required for form submissions.
Request
Content-Type: application/json
Accept: application/json # Optional, for JSON response
Body
Any JSON object with your form fields:
{
"name": "John Doe",
"email": "john@example.com",
"message": "Hello!"
}
Examples
cURL
curl -X POST https://api.spike.ac/f/YOUR_FORM_SLUG \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"email":"user@example.com","message":"Hello"}'
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();
const formData = new FormData();
formData.append('email', 'user@example.com');
formData.append('message', 'Hello!');
const response = await fetch('https://api.spike.ac/f/YOUR_FORM_SLUG', {
method: 'POST',
body: formData,
headers: { 'Accept': 'application/json' }
});
Response
Success (200)
{
"success": true,
"message": "Form submitted successfully"
}
Redirect
Without Accept: application/json, successful submissions redirect to:
- The
_next field value (if provided)
- The form’s configured redirect URL
- A default thank-you page
Special Fields
These fields control behavior and are not stored:
| Field | Description |
|---|
_next | Redirect URL after submission |
_subject | Custom email subject |
_replyto | Reply-to email address |
_gotcha | Honeypot field (keep hidden) |
g-recaptcha-response | reCAPTCHA token |