REST API & webhooks
Let your website or another program read and update your cars, leads, customers and deals (API, Pro), and tell Zapier, Make or your own server when something happens (webhooks, Growth and Pro).
Get a key
Settings → API & webhooks (admins, Pro plan). Type a name (for example Website), choose who the key acts as and what it can do:
- Read only: read every record the person can see on screen.
- Read and create leads: what a website needs (stock pages plus the enquiry form).
- Read and write: also add and change records.
Click Make a key and copy it straight away: it's shown only once. Revoke stops a key at once. A key sees and changes exactly what its person can: their role, whose records they see, and their job preset. Someone who can't see car costs doesn't get them through the API either. Keys made before 2 Nov 2026 act as your first admin.
Use it
Send the key in the header Authorization: Bearer dk_…. Up to 120 requests a minute per key. Answers are JSON: a list is {"ok": true, "data": [...], "page": 1, "per_page": 50, "has_more": false}, one record is {"ok": true, "data": {...}}, a problem is {"ok": false, "error": "…", "code": "…"}.
| Request | What it does |
|---|---|
GET /api/v1/vehicles |
Available cars with photo links (add ?status=all, ?make=Toyota, ?condition=new, ?limit=50&offset=0, ?updated_since=…) |
GET /api/v1/vehicles/S-0001 |
One car by stock number (or by its id) |
POST /api/v1/vehicles |
Add a car as a draft: {"vin", "make", "model", "year", "price", …} |
PATCH /api/v1/vehicles/S-0001 |
Change the price, status or details (same rules as the car page) |
POST /api/v1/leads |
A lead: {"name", "email" or "phone", "message", "stock_number", "source"} |
GET /api/v1/leads, /contacts, /companies, /deals, /tasks, /activities |
Lists, newest changes with ?updated_since=2026-11-01T00:00:00Z; ?page=2&per_page=100 |
GET /api/v1/deals/123 |
One deal with the deal-desk numbers (price, tax, total, finance, gross for people who see costs) and any extra cars |
POST / PATCH /api/v1/{contacts, companies, deals, tasks, activities} |
Add or change those records |
GET /api/v1/test_drives, /appraisals, /service_jobs |
Read-only lists of test drives, appraisals and service job cards |
GET /api/v1/meta |
The ids you need: statuses, stages, people, branches, custom fields |
GET /api/v1/me |
Which company and person the key belongs to |
curl -H "Authorization: Bearer dk_…" https://dealer-crm.thecodesmith.tech/api/v1/vehicles?limit=20
curl -X POST -H "Authorization: Bearer dk_…" -H "Content-Type: application/json" \
-d '{"name":"Ana Ruiz","phone":"+1 305 555 0101","stock_number":"S-0001"}' \
https://dealer-crm.thecodesmith.tech/api/v1/leads
curl -X PATCH -H "Authorization: Bearer dk_…" -H "Content-Type: application/json" \
-d '{"price": 18900}' https://dealer-crm.thecodesmith.tech/api/v1/vehicles/S-0001
A lead with a stock number is linked to that car and given to its salesperson. Deals can't be won through the API: a car deal is won when it is delivered on the deal desk.
Webhooks
A webhook sends a short message to another system the moment something happens (Growth and Pro). In Settings → API & webhooks → Webhooks, paste an address (a Zapier "Catch Hook", a Make "Custom webhook", or your own https address), tick the events and save. Events: leads added, assigned or changing status; customers and companies added; deals added, moving stage, won or lost; quotations; tasks; tickets; cars added, repriced or changing status; test drives booked or done; appraisals started or decided; service job cards handed over.
Each message is JSON: {"id", "event", "created_at", "company_id", "data": {…the record…}, "changes": {…}}. Use Send test to check the address.
Check a webhook is really from us
Every message has a header X-DealerCRM-Signature: t=<time>,v1=<signature>. The signature is HMAC-SHA256 of <time>.<the raw body> with the webhook's signing secret (shown under the webhook). Work it out on your side and compare. New secret makes a new one and the old one stops working.
Retries and the delivery log
If your address doesn't answer with a 2xx code, Dealer CRM tries again after 1 minute, 5 minutes, 30 minutes, 2 hours and 12 hours, then marks it failed. The Delivery log shows every message and try. Retry failed sends the failed messages of the last 7 days again.
Answers
401 wrong or revoked key · 402 the company isn't on an active Pro plan · 403 the key or its person lacks that right · 404 no such record (or the person can't see it) · 409 a rule stops it (for example the plan's car limit) · 429 too many requests.