Skip to main content
If you don’t need a full booking flow and just want website form submissions to land in the CRM as leads, use the website lead-capture integration. It’s the simplest way to connect an existing site (WordPress, Wix, Squarespace, or hand-written HTML) to Auto Detailing CRM.
Everything on this page is generated for you under Settings → Website Leads. Copy the snippet from there — this page explains what it does and how to customize it.

How it works

The Website Leads settings page gives you two things:
  1. Your lead token — an opaque token that identifies your workspace.
  2. An embed snippet — a small <script> that POSTs your form fields to the lead-capture endpoint when a button is clicked.
A submitted lead appears immediately in your Leads tab with the source set to Website.
Treat the lead token as public — it ships in your page source. It only allows creating leads for your workspace. Regenerating the token (from Settings → Website Leads) breaks any embed that still uses the old one, so update your site afterward.

The embed snippet

The snippet wires a button on your page to the lead endpoint. It expects four element IDs — crm-name, crm-phone, crm-email, and a submit button crm-lead-btn:
Don’t assemble the URL by hand. Open Settings → Website Leads, copy the Endpoint URL field (it already includes your workspace’s host and lead token), and paste it in place of YOUR_ENDPOINT_URL. The page also offers a one-click Copy for the full snippet.

Posting directly

If you’d rather call the endpoint yourself instead of using the snippet, POST a JSON body to your Endpoint URL (copied from Settings → Website Leads). The token is already baked into that URL as the ?token= query parameter; alternatively you can send a bare endpoint and pass the token in an x-lead-token header.

Fields

A successful submission returns { "ok": true, "lead_id": ... }. On failure the response is { "ok": false, "error": "..." } — common errors include invalid_token, missing_token_header, and tenant_not_resolved.

Booking API vs. lead capture

Use lead capture when you just want inquiries to flow into the CRM. Use the Booking API when you want customers to pick a service and book a real appointment time on your own site.