Complete API reference, guides, and examples to get your forms up and running in minutes.
Sign up for free and create your first form to get a unique Form ID.
<form action="https://api.api4forms.com/submit/your-form-id" method="POST">
<input type="text" name="name" placeholder="Your Name" required>
<input type="email" name="email" placeholder="Your Email" required>
<textarea name="message" placeholder="Your Message" required></textarea>
<button type="submit">Send Message</button>
</form>API4Forms supports both public and authenticated endpoints. For public form submissions, no authentication is required. For accessing your dashboard data, use your API key.
Include your API key in the X-API-Key header:
X-API-Key: api4f_1234567890abcdefSecurity Note: Never expose your API key in client-side code. Use it only in server-side applications or secure environments.
Base URL: https://api.api4forms.com
/submit/{form-id}Submit form data
/formsList all your forms
/formsCreate a new form
/forms/{form-id}/submissionsGet form submissions
/forms/{form-id}Delete a form
Webhooks allow you to receive real-time notifications when forms are submitted. Configure webhook URLs in your dashboard to receive POST requests with submission data.
{
"event": "form.submitted",
"form_id": "your-form-id",
"submission_id": "sub_1234567890",
"timestamp": "2024-01-15T10:30:00Z",
"data": {
"name": "John Doe",
"email": "john@example.com",
"message": "Hello from API4Forms!"
},
"metadata": {
"ip_address": "192.168.1.1",
"user_agent": "Mozilla/5.0...",
"referrer": "https://yoursite.com/contact"
}
}API4Forms uses conventional HTTP response codes to indicate success or failure.
To ensure fair usage and prevent abuse, API4Forms implements rate limits based on your plan.
60 requests/hour
100/month
1,000 requests/hour
10,000/month
10,000 requests/hour
100,000/month
Rate limit information is included in response headers:X-RateLimit-Remaining andX-RateLimit-Reset
npm install api4formspip install api4formscomposer require api4forms/php-sdkgem install api4forms