Integrations

Setting Up Webhooks

5 min readLast 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. 1Go to My Forms
  2. 2Click Settings icon on your form
  3. 3Scroll to "Webhook Integration"
  4. 4Toggle "Enable webhook"
  5. 5Paste your webhook URL
  6. 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:

  1. 1Go to https://webhook.site
  2. 2Copy your unique URL
  3. 3Add to FormBharat settings
  4. 4Submit a test form
  5. 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

Was this article helpful?

Still have questions?

Our support team is here to help. Reach out and we'll get back to you.

Contact Support