The Code Smith Lead CRM Help Open Lead CRM
Help › Settings (admins)

API & webhooks

Connect Lead CRM to other systems: an API to read and update records, and webhooks that tell Zapier, Make or your own server when something happens.

Open this in Lead CRM →

Pro plan. Admins set this up in Settings → API & webhooks.

The API

The API lets another program read and change your records over the internet, for example your website, an accounting tool or a script your developer writes. It covers leads, contacts, companies, deals, tasks and activities: list them, open one, add new ones and update them. Deleting is done in Lead CRM itself.

Your developer finds every detail in the API Reference document. The short version:

Address https://lead-crm.thecodesmith.tech/api/v1/leads (and /contacts, /companies, /deals, /tasks, /activities)
Key Authorization: Bearer lcrm_… in every request
Answers JSON. Lists come 50 at a time (up to 100) with page and has_more
Only what changed Add ?updated_since=2026-11-01T00:00:00Z
Limit 120 requests a minute for each key

API keys

  1. Settings → API & webhooks → API keys.
  2. Give the key a name (what it's for), choose who it acts as, and choose Read only or Read and write.
  3. Click Make a key and copy it straight away. It is shown only once; Lead CRM keeps only a scrambled copy.

Acts as matters: the key sees and changes exactly what that person can on screen. A key acting as a sales rep sees only that rep's leads and deals; a key acting as an admin sees everything. Pick the narrowest person that does the job.

Changes made through the API are in the Audit log with via api, and they start your automation rules like changes made on screen.

Revoke a key the moment you no longer need it or think it leaked. Anything using it stops working at once.

Webhooks

A webhook is the other direction: Lead CRM sends a short message to an address you give it as soon as something happens, for example a lead is added or a deal is won.

  1. Settings → API & webhooks → Webhooks → Add a webhook.
  2. Paste the address. It must start with https://.
  3. Tick the events to send: lead added, lead assigned, lead status changed, contact added, company added, deal added, deal stage changed, deal won, deal lost, quotation sent / accepted / declined, task added, support ticket opened.
  4. Click Add webhook, then Send test to check it arrives.

Each message is JSON with event, created_at, company_id and data (the record, the same fields as the API).

Zapier and Make

You don't need a developer for these:

  • Zapier: make a Zap with the trigger Webhooks by Zapier → Catch Hook. Zapier gives you an address: paste it into a Lead CRM webhook, tick the events, click Send test, and Zapier sees the test message. Then add any action (Google Sheets, Slack, Mailchimp…).
  • Make: add the module Webhooks → Custom webhook, copy its address into Lead CRM, click Send test, then Redetermine data structure in Make.

Signing secret

Every message has a header X-LeadCRM-Signature: t=<time>,v1=<signature>. The signature is an HMAC-SHA256 of <time>.<message> made with the webhook's signing secret (under Show). Your developer can check it to be sure the message really came from Lead CRM. Zapier and Make don't need it. New secret replaces it; the old one stops working.

Delivery log and retries

Delivery log shows every message: when, which event, and whether it arrived. If the other side doesn't answer with success, Lead CRM tries again after 1 minute, 5 minutes, 30 minutes, 2 hours and 12 hours. After that it is marked Failed; Retry failed sends the last week's failures again. A webhook that's switched off sends nothing.

For safety, webhooks only go to addresses on the public internet, never to private networks.