API, Webhooks & Email Integration

Webhooks and the universal capture snippet

Send leads in from any form or app, and push events out to your own systems.

6 min read

The capture snippet turns any existing form on your site into a lead source. Outbound webhooks push deal changes to your own systems.

Universal capture snippet

<script src="https://www.smartflosystems.com/capture.js" data-workspace="YOUR_WORKSPACE_KEY" async></script>

Inbound lead (HTTP POST)

curl -X POST https://www.smartflosystems.com/api/public/crm-capture \
  -H 'Content-Type: application/json' \
  -d '{
    "workspaceKey": "YOUR_WORKSPACE_KEY",
    "name": "Jane Doe",
    "email": "jane@example.com",
    "message": "Quote for a full rewire"
  }'

Outbound webhook payload

{
  "event": "deal.stage_changed",
  "dealId": "dl_8f21c",
  "from": "Quoted",
  "to": "Won",
  "value": 4200,
  "occurredAt": "2026-01-14T09:31:02Z"
}

Webhook keys are visible to account admins only. Rotate the key if it is ever shared outside your team.

Try the tools in this guide

AI CRM with 24/7 AI Agents & Job Management

The CRM for trades: customer records, sales pipeline and job files in one place, with 24/7 AI agents answering enquiries.

Troubleshooting & FAQs