DealerCore

For developers

DealerCore API

Show a dealership’s cars on any website, keep them up to date the moment they change, and send shoppers’ messages and visit bookings straight into the dealer’s Sales Funnel.

Quick start

1. The dealer makes a key for you in DealerCore › Settings › Connected accounts › Connections for developers, and sends it to you. Keys start with dck_. Each key belongs to one dealership.

2. Read their cars:

curl https://test.dealercore.ca/api/public/v1/cars \
  -H "Authorization: Bearer dck_…"
const r = await fetch("https://test.dealercore.ca/api/public/v1/cars?per_page=100", {
  headers: { Authorization: "Bearer " + process.env.DEALERCORE_KEY }
});
const { data, has_more } = await r.json();

3. Optional: ask the dealer to add your alert address, and you get changes within seconds instead of polling.

Prefer a file? The same cars are also available as a CSV/JSON feed the dealer can send you, and the full description is at openapi.json (OpenAPI 3.1).

Keys

Send the key in every request: Authorization: Bearer dck_…. Keep it on your server. Never put it in a web page; for that, the dealer can use the live car box instead.

A key can be allowed to see the cars, send messages and book visits. The dealer chooses, can see when you last used it, and can switch it off at any time (you then get 401).

Endpoints

Base address: https://test.dealercore.ca/api/public/v1

MethodPathWhat it does
GET/dealerThe dealership: name, address, phone, hours, OMVIC no., locations
GET/carsCars for sale. ?page, ?per_page (max 100), ?updated_since, ?status
GET/cars/{id}One car
GET/cars/{id}/photosPhotos in order, first is the main photo
GET/cars/{id}/booking-slotsOpen visit times for the next 14 days
POST/leadsContact us or financing interest → the dealer’s Sales Funnel
POST/bookingsBook a visit at an open time → appointment + confirmation email
PUT/webhookSet your own instant-alert address (https); {"url":"…","new_secret":true} returns the signing secret. GET shows it, DELETE turns it off

Reads send an ETag; send it back as If-None-Match and you get 304 Not Modified when nothing changed.

Cars

A car is exactly what the dealer’s public car page shows: only published cars that are not sold. A car with a deposit stays in with status: "deposit_received". When a car leaves the list, it was sold or taken down; remove it from your site.

Never in the API: what the dealer paid, profit, customers or internal notes.

{
  "id": 1042, "stock_number": "A-1042", "vin": "2HGFC2F59KH512345",
  "year": 2019, "make": "Honda", "model": "Civic", "odometer_km": 68000, "colour": "Grey",
  "price_cad": 18995, "price_note": "Plus HST and licensing", "status": "available",
  "description": "…", "disclosures": "…",
  "image_urls": ["https://test.dealercore.ca/api/public/v1/photos/88?v=3fa9c1d2e0", "…"], "photo_count": 12,
  "location_name": "ABC Autos", "location_address": "…", "url": "…", "omvic": "…",
  "last_updated": "2026-11-23T14:05:12Z"
}

Ontario rules: show the price as the all-in price with its price_note, and always show disclosures next to the price.

Photos: in order, the first is the main photo. A replaced photo gets a new link (?v= changes), so re-download when the link changes. Photo links need no key.

Leads and bookings

Send what the shopper typed on your website. It lands in the dealer’s Sales Funnel as “Your website”, and the dealer is told at once.

curl -X POST https://test.dealercore.ca/api/public/v1/leads \
  -H "Authorization: Bearer dck_…" -H "Content-Type: application/json" \
  -H "Idempotency-Key: 6f1c-…" \
  -d '{"car_id":1042,"name":"Sam Lee","phone":"416-555-0100","email":"sam@example.com",
       "message":"Is it still available?","interest":"contact","consent":true}'

consent must be true: show the shopper that the dealership may contact them about this car, and only send when they agree. interest is "contact" or "financing".

Bookings use the open times from /cars/{id}/booking-slots. The shopper gets the dealer’s usual confirmation email with a link to change or cancel.

curl -X POST https://test.dealercore.ca/api/public/v1/bookings \
  -H "Authorization: Bearer dck_…" -H "Content-Type: application/json" \
  -d '{"car_id":1042,"name":"Sam Lee","email":"sam@example.com","phone":"416-555-0100",
       "day":"2026-11-25","time":"14:30","note":"Test drive please"}'

Send an Idempotency-Key header with each POST. If you retry with the same key and body within 24 hours, you get the first answer again instead of a second lead.

Instant alerts (webhooks)

The dealer adds your https address to the key, or your system sets it with PUT /webhook. When a car changes, we POST a JSON event within seconds:

car.createdA car was published. data.car is the full car.
car.updatedPrice, km, photos, description, status… data.changes lists the fields that changed.
car.soldThe car was sold. Remove it. data.car_id, stock_number, vin.
car.removedThe dealer took the car down. Remove it.
pingThe dealer pressed “Send test alert”.

Answer with any 2xx within 10 seconds. We retry after 30 s, 1, 2, 4… minutes (up to an hour apart), 10 times. After 20 failed tries in a row, alerts stop and the dealer is told. Redirects are not followed. Events can arrive more than once; use id to skip repeats.

Check every alert. The DealerCore-Signature header is t=<unix time>,v1=<hex>, where hex is HMAC-SHA256 of "<t>.<raw body>" with your signing secret (whsec_…, from the dealer):

const crypto = require("crypto");
function verify(rawBody, header, secret) {
  const p = Object.fromEntries(header.split(",").map((x) => x.split("=")));
  if (Math.abs(Date.now() / 1000 - Number(p.t)) > 300) return false; // older than 5 minutes
  const want = crypto.createHmac("sha256", secret).update(p.t + "." + rawBody).digest("hex");
  return crypto.timingSafeEqual(Buffer.from(want), Buffer.from(p.v1 || ""));
}
{ "id": "evt_9c…", "type": "car.updated", "created_at": "2026-11-23T14:05:13Z", "dealer": "abc-autos",
  "data": { "car": { "id": 1042, "price_cad": 17995, … }, "changes": ["price_cad"] } }

Limits and errors

Per key: 600 reads every 10 minutes and 120 leads or bookings an hour. Each answer shows X-RateLimit-Remaining. Too many: 429 with Retry-After. Reading every few minutes, or using alerts, is plenty.

Errors are JSON: {"error":{"code":"invalid","message":"…","field":"email"}}. Codes: 401 unauthorized, 403 forbidden (the key may not do that), 404 not_found, 409 slot_taken / idempotency_conflict / booking_off, 422 invalid, 429 rate_limited, 503 api_paused.

AI agents

AI assistants and agents (for example ChatGPT agents, Meta’s Muse or your own) use the same endpoints with a key from the dealer: read /cars, offer times from /booking-slots, and send /bookings or /leads. Give the agent openapi.json as its tool description.

Agents must: ask the shopper before sending their name, phone or email; set consent only when the shopper agreed; never promise a price, deal or availability beyond what the API returns; and show the all-in price with its disclosures.

Tell us what you are: send X-DealerCore-Client: yourapp/1.2.0; site=https://dealer-site.ca and the dealer sees which website uses the key.

WordPress

For WordPress websites there is a ready-made add-on, DealerCore Inventory: a Cars page, a real page for each car (with schema.org data and sitemap), booking and contact forms, and instant updates. The dealer downloads it in DealerCore › Settings › Website.

Changelog

1.1 — November 2026. PUT/GET/DELETE /webhook (a key sets its own alert address), X-DealerCore-Client, WordPress add-on.

1.0 — November 2026. First version: cars, dealer, photos, booking slots, leads, bookings, instant alerts.

Questions: hello@dealercore.ca.