Leads and web forms

A lead is someone who showed interest but has not bought yet: a contact form, a "call me back" request, an abandoned cart. The CRM gives each lead to a salesperson and schedules a first-contact follow-up within an hour.

Push a lead#

POST /v1/integrations/leads. This needs the leads.write scope.

{
  "externalId": "form-7f3a2c",
  "name": "Dawit Haile",
  "phone": "0922 33 44 55",
  "email": "dawit@example.com",
  "city": "Adama",
  "productInterest": "Solar panel 300W",
  "message": "Do you deliver to Adama? I need 4.",
  "formKey": "contact-us",
  "channel": "website",
  "createdAt": "2026-10-06T10:00:00Z",
  "attribution": { "source": "tiktok", "campaignCode": "SOLAR-Q4" }
}
FieldRequiredNotes
externalIdyesUnique per submission. If your form has no id, generate a UUID once and reuse it when you retry.
nameyes
phone or emailone of themPhone numbers follow the same rules as customers.
productInterest, message, city, formKey, channel, createdAt, attributionmessage is added to the customer's timeline.

The answer is 202 {"status":"accepted","eventId":"…"}. Leads are processed in the background, usually within a second. A second submission from someone who already has an open lead is added to that lead rather than opening a new one.

Web forms without a backend#

Static landing pages can post straight to the CRM, with no API key in the page. An admin creates a form in Settings → Integrations → Web forms. That gives a public address and a ready-made HTML snippet:

<form method="post" action="https://api.abbaycrm.com/v1/capture/web-form/wf_8c1d…">
  <input name="name" required>
  <input name="phone" type="tel" required>
  <input name="email" type="email">
  <textarea name="message"></textarea>
  <!-- Leave this hidden field empty; bots fill it in. -->
  <input name="website" tabindex="-1" autocomplete="off" style="position:absolute;left:-9999px">
  <button>Send</button>
</form>
  • The form accepts a normal HTML post (and then redirects to the thank-you page the admin set), or JSON from fetch (answers 202).
  • Fields: name, phone, email, city, productInterest, message, utm_source, utm_medium, utm_campaign, utm_content, utm_term, ref (referral code), fbclid, ttclid, gclid and pageUrl.
  • Protection: an allow-list of sites that may post (checked against the Origin header), 10 posts per minute per visitor, 600 per hour per form, and the hidden website field.