Documentation
Quick Start
Get your form up and running in minutes
1
Get Your API Key
Sign up for a free account and get your unique API key from the dashboard.
Your API Key:sf_abc123def456ghi789
2
Add the Form Endpoint
Update your form's action attribute to point to our API endpoint.
<form action="https://api.staticforms.xyz/submit" method="POST">
<input type="hidden" name="apiKey" value="YOUR_API_KEY" />
{/* Your form fields here */}
</form>3
Add Form Fields
Add your form fields with proper names. All field names will be included in the email you receive.
<form action="https://api.staticforms.xyz/submit" method="POST">
<input type="hidden" name="apiKey" value="YOUR_API_KEY" />
<label for="name">Name:</label>
<input type="text" name="name" required />
<label for="email">Email:</label>
<input type="email" name="email" required />
<label for="message">Message:</label>
<textarea name="message" required></textarea>
<button type="submit">Send</button>
</form>4
Configure Redirect (Optional)
Add a redirect URL to send users to a thank you page after form submission.
<form action="https://api.staticforms.xyz/submit" method="POST">
<input type="hidden" name="apiKey" value="YOUR_API_KEY" />
<input type="hidden" name="redirectTo" value="https://yoursite.com/thank-you" />
{/* Your form fields */}
</form>🎉 That's it! You're all set!
Your form is now ready to collect submissions. Here are some next steps to explore: