Integrations

Setting Up Webhooks

Last updated: March 12, 2024


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

1. Go to Dashboard
2. Click Settings icon on your form
3. Scroll to "Webhook Integration"
4. Toggle "Enable webhook"
5. Paste your webhook URL
6. Click "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:
1. Go to https://webhook.site
2. Copy your unique URL
3. Add to FormBharat settings
4. Submit a test form
5. See the payload on webhook.site

Check Delivery:
- Webhooks send immediately on submission
- Failed webhooks retry 3 times
- Check your server logs

Popular Integrations

Zapier
- Create multi-step workflows
- Connect to 5000+ apps
- No coding required

Google Sheets
- Auto-populate spreadsheets
- Real-time data sync
- Easy reporting

Slack
- Get notifications in channels
- Team collaboration
- Instant alerts

Custom Apps
- Send to your backend
- Process data your way
- Full control

Security

- ✅ HTTPS only
- ✅ POST method
- ✅ JSON format
- ✅ Retry logic

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

Need help? [Contact Support](/contact) 🔗

Was this article helpful?

Still have questions?