API & Webhooks

Integrate with LeadFormHub using our HTTP API and webhooks. Base URL: https://leadformhub.com

API

Dashboard endpoints (forms, leads, export) require a logged-in session (cookies). The lead submission endpoint is public and needs no authentication.

  • Submit lead (public): POST https://leadformhub.com/api/leads/submit — send formId and data (field values).
  • Forms: List, create, get, update, update schema, delete — under /api/forms.
  • Leads: List, get one, delete, export (CSV/Excel) — under /api/leads.
  • Support: Create and list support requests, get thread, post replies — under /api/support-requests. Staff can post replies with Authorization: Bearer <SUPPORT_API_KEY>.

Full request/response shapes, authentication details, and error codes are in the API & Webhooks documentation (docs/API-AND-WEBHOOKS.md in the repository).

Webhooks

Send inbound email replies to record them in support ticket threads.

POST https://leadformhub.com/api/support-requests/inbound

Auth: header x-inbound-secret or Authorization: Bearer <secret>. Body: from, subject (must contain e.g. #LFH-000006), text (or html).

Configure your email provider (SendGrid, Mailgun) or automation (Zapier, Make) to POST to this URL. See Raise Support Request and the repo doc docs/support-inbound-email.md for setup steps.

Need help? Contact us or raise a support request.