Webhook Integration
Connect FormBharat to any external service with webhooks!
What are Webhooks?
Webhooks send form responses to your server or third-party service automatically when someone submits a form.
Use Cases
- Send to Zapier for automation
- Connect to your CRM
- Trigger custom workflows
- Sync with databases
- Integrate with Slack, Discord, etc.
Setting Up Webhooks
Step 1: Get Your Webhook URL
From your integration service:
- Zapier: Create a "Webhook" trigger
- Make (Integromat): Use "Webhooks" module
- Custom: Set up your endpoint
Step 2: Configure in FormBharat
- 1Go to My Forms
- 2Click Settings icon on your form
- 3Scroll to "Webhook Integration"
- 4Toggle "Enable webhook"
- 5Paste your webhook URL
- 6Click "Save Settings"
Webhook Payload
When a form is submitted, we POST this JSON:
json
{
"formId": "abc123",
"formTitle": "Contact Form",
"responseId": "xyz789",
"timestamp": "2024-03-12T10:30:00Z",
"data": {
"name": "John Doe",
"email": "john@example.com",
"message": "Hello!"
}
}
Testing Webhooks
Use webhook.site:
- 1Go to https://webhook.site
- 2Copy your unique URL
- 3Add to FormBharat settings
- 4Submit a test form
- 5See the payload on webhook.site
Security
- ✅ HTTPS only
- ✅ POST method
- ✅ JSON format
- ✅ Retry logic (3 attempts)
Troubleshooting
Webhook not firing?
- Check URL is correct
- Ensure endpoint accepts POST
- Verify HTTPS (not HTTP)
- Check server logs
Getting errors?
- Response must be 200-299
- Timeout is 30 seconds
- Check payload format