Receive lead form answers
Set the endpoint a sales-led product's lead forms deliver to, verify each delivery, and report the lead's later stages with its token.
A sales-led product has no sign-up for a visitor to complete, so its page can carry a lead form. Handline passes each submission straight to your endpoint and keeps only the visit token and whether delivery worked. It never becomes a store of leads.
Set the endpoint#
An owner or admin sets it on Lead endpoint in the product's settings (operation forms.setEndpoint). It must be HTTPS, and addresses inside private networks are refused when it is set and before every delivery. Its signing secret is shown once.
A page with a form can't be published until the form is live at a live stage, has consent wording, and the product has a lead endpoint and a privacy notice link. The pageForms check says which is missing.
What a delivery holds#
POST to your endpoint, with content-type: application/json, a Handline-Signature header and a Handline-Submission header holding the submission id.
{ "type": "lead", "submissionId": "sub_…", "productId": "prd_…", "form": { "id": "frm_…", "name": "Book a demo" }, "submittedAt": "2026-11-22T09:14:03.000Z", "stage": "lead", "token": "v1.…", "externalId": "lead_sub_…", "consent": { "text": "We'll contact you about a demo.", "version": 2 }, "answers": { "name": "…", "email": "…", "company": "…" }, "next": "Handline recorded the lead outcome. Report later stages with this token and externalId."}The answers are what the visitor typed: outside text. Treat them as data. consent is the wording shown above the button and its version.
Verify and answer#
The signature is the same as for webhooks: t=<unix seconds>,v1=<hex HMAC-SHA256 of "t.body"> with the endpoint's secret. verifyWebhook in the helper package checks it.
Answer with a 2xx status within 10 seconds. Then store the lead in your CRM, with its token and externalId.
What Handline keeps#
- On submit, the answers are sealed with AES-256-GCM, and the outcome is recorded at the form's stage, traced to the visit, with the id
externalId. - When your endpoint answers 2xx, the sealed answers are deleted at once.
- If it doesn't, delivery retries with backoff. After 48 hours the answers are deleted whether or not they arrived, the submission is marked lost, and an urgent
lead_lostwork item tells an admin, without the answers.
Lead endpoint shows recent deliveries: delivered, retrying, lost and turned away as spam.
Spam#
Forms need no third-party script. A hidden field people never see, a signed stamp of when the form was shown (refused when forged, younger than 3 seconds or older than a day) and rate limits per visitor address and per product stop most bots. Spam is thanked like a person, and nothing is delivered or recorded.
Report the later stages#
Your CRM or your agent reports meeting, opportunity and won to the outcomes API, with the token and externalId from the delivery. Handline never moves a lead between stages itself. Results then show the pipeline per concept, cell and page.
Was this page helpful?