Quickstart
1. Get an access key
Sign in at app.formstork.com, create a form, and copy its access key (a UUID like 11111111-1111-4111-8111-111111111111). The key is safe to expose in client-side code.
2. Add it to your form
<form action="https://api.formstork.com/submit" method="POST">
<input type="hidden" name="access_key" value="YOUR_ACCESS_KEY">
<input type="text" name="name" required>
<input type="email" name="email" required>
<textarea name="message" required></textarea>
<button type="submit">Send</button>
</form>
That’s the whole integration. Submit it and check your inbox.
3. Optional fields
Add these as hidden inputs to customize behavior:
| Field | What it does |
|---|---|
subject |
Custom email subject line |
from_name |
Sender name on the notification email |
replyto |
Reply-to address (defaults to the form’s email field) |
ccemail |
Extra recipients, ;-separated |
redirect |
URL to send the visitor to after submitting |
botcheck |
Honeypot field, leave it empty (see Spam protection) |
JSON API
Prefer fetch? POST JSON to the same endpoint:
const res = await fetch("https://api.formstork.com/submit", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
access_key: "YOUR_ACCESS_KEY",
email: "ada@example.com",
message: "Hello!",
}),
});
const data = await res.json(); // { success, message }