Web Forms, API Keys and Webhooks for Sri Lankan Websites
A business website in Sri Lanka is often a simple page with a phone number, a WhatsApp button and a contact form that sends an e-mail to someone’s inbox. 4softcrm can do better: a public web form creates a lead directly. This guide explains forms, API keys and signed webhooks for owners and the developers they hire.
How Sri Lankan sites usually collect enquiries
Many small firms have a site on a .lk or .com domain, built by a freelancer or a local agency, plus a busy Facebook page. Enquiries arrive by e-mail, by form or by a click-to-chat button, and then wait in a mailbox. When the person who checks it is on leave, enquiries sit for days. Moving the form output straight into the CRM makes each enquiry visible to the whole team.
Public web forms that create leads
4softcrm provides public web forms that create leads on your own website. Keep the form short: name, phone number, a message and perhaps a preferred language or district. Every extra field lowers the chance that a visitor finishes it. Test the form yourself on a mobile phone, because a large share of visitors in Sri Lanka browse on small screens and sometimes slow connections.
- Name and phone first
- Optional district and language
- Test on a phone before launch
API keys for your developer
If a developer is building a custom site or an internal tool, 4softcrm supports API keys. Treat a key like a password: share it only through a safe channel, never place it in code that is visible in the browser and replace it if a contractor’s engagement ends. Create separate keys for separate purposes, so one can be withdrawn without breaking everything else.
Webhooks for lead and deal events
Webhooks notify another system when a lead or deal is created or updated. Each request is signed with HMAC, so the receiving server can check that it truly came from 4softcrm and was not altered. This suits, for example, a custom dashboard in your head office in Colombo or a small script that logs new deals. Your developer should verify the signature on every request.
Keep spam and privacy in mind
Public forms attract bots. Review new leads regularly, and add a short consent sentence beside the submit button telling visitors why you collect their details. If the form is shown in Sinhala or Tamil, make sure the labels and confirmation message are written in the same language as the page. Delete obvious spam leads quickly so that reports and scoring are not distorted by junk.
- Review new leads regularly
- Add a short consent sentence
- Match labels to the page language
Frequently asked questions
Do I need a developer to use a web form?
A simple form can be added to your site by whoever manages it, since it only needs to be placed on a page. Developers are mainly useful for API keys, webhooks and custom integrations.
What does an HMAC signature do?
It lets the receiving system verify that a webhook came from 4softcrm and was not changed on the way. Your developer should check the signature on every request and reject any that fail.
Can the form run on a site not built with a particular platform?
The form is designed for your own website, so it is not tied to one website builder. Ask your web developer to place it and test that submitted enquiries appear as new leads.
Keep contacts, leads, deals and quotes in one place. See the plans.
See plans