← Back to API Reference Hub

Domains, Dealers & Jobs API Reference

Onboard dealer website domains individually or in batches of up to 500, trigger manual inventory scans, manage primary dealer profiles, query portfolio-wide rollups, and monitor asynchronous scrape jobs.

Tracked Domains - onboard, scan & manage dealer websites.

Adding a domain triggers automated CMS detection (1 to 5 minutes) followed by a full inventory scrape (5 to 15 minutes).

MethodEndpointPurpose
GET/api/domainsList all dealer website domains attached to your API key with detected CMS platform, last scrape timestamp, and active vehicle counts.
POST/api/domainsOnboard a dealer website URL for automated CMS platform detection and recurring inventory ingestion.
POST/api/domains/bulkOnboard up to 500 dealer domains in a single request using either a JSON array of URLs or newline-separated text/csv.
GET/api/domains/{clean_domain}/vehiclesReturn paginated vehicle listings for a single dealer identified by its clean domain name (for example, example-dealer.com).
GET/api/domains/id/{id}Retrieve a single domain record by numeric ID, including recent scrape jobs and active/total vehicle counts.
POST/api/domains/{id}/scanQueue an immediate inventory scrape job for a tracked domain and return the queued job ID.
DELETE/api/domains/{id}Soft-deactivate a domain to stop recurring scrapes while preserving historical vehicle records.
POST/api/domains/{id}/reactivateRe-enable a previously deactivated domain and resume scheduled inventory scraping.
GET/api/domains/cms-distributionReturn the count of tracked domains grouped by detected dealer website CMS platform.

List tracked domains

GET/api/domains

List all dealer website domains attached to your API key with detected CMS platform, last scrape timestamp, and active vehicle counts.

NameTypeRequiredDescription
is_activeboolean (query)NoFilter by active status
cms_typestring (query)NoFilter by detected CMS
limitinteger (query)NoPage size
offsetinteger (query)NoPagination offset
CURLGET /api/domains
curl -sS "https://api.motorsdynamic.com/api/domains?is_active=true&limit=100&offset=0" \
  -H "X-API-Key: YOUR_API_KEY"
RESPONSE200 OK
{
  "domains": [
    {
      "id": 42,
      "url": "https://www.example-dealer.com",
      "clean_domain": "example-dealer.com",
      "cms_type": "dealeron",
      "is_active": true,
      "last_scraped_at": "2026-10-30T06:12:00.000Z",
      "vehicle_count": 412,
      "vehicle_counts": { "new": 190, "used": 182, "cpo": 40, "total": 412 }
    }
  ],
  "total": 1,
  "limit": 100,
  "offset": 0
}

Add a domain

POST/api/domains

Onboard a dealer website URL for automated CMS platform detection and recurring inventory ingestion.

NameTypeRequiredDescription
urlstring (body)YesTarget URL (dealer website URL or HTTPS webhook receiver URL)
CURLPOST /api/domains
curl -sS -X POST "https://api.motorsdynamic.com/api/domains" \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url": "https://www.example-dealer.com"}'
RESPONSE201 Created
{
  "message": "Domain added and queued for processing",
  "domain": {
    "id": 412,
    "url": "https://www.example-dealer.com",
    "clean_domain": "example-dealer.com",
    "cms_type": null,
    "is_active": true,
    "vehicle_count": 0
  }
}

Bulk add up to 500 domains

POST/api/domains/bulk

Onboard up to 500 dealer domains in a single request using either a JSON array of URLs or newline-separated text/csv.

NameTypeRequiredDescription
urlsstring[] (body, application/json)NoArray of up to 500 dealer website URLs or domains (required when Content-Type is application/json)
csv_bodystring (body, text/csv)NoNewline-separated list of up to 500 dealer domains (required when Content-Type is text/csv)
CURLPOST /api/domains/bulk
curl -sS -X POST "https://api.motorsdynamic.com/api/domains/bulk" \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"urls": ["example-dealer-1.com", "example-dealer-2.com", "example-dealer-3.com"]}'
RESPONSE207 Multi-Status
{
  "summary": { "total": 3, "added": 2, "skipped": 1, "errors": 0 },
  "results": [
    { "url": "example-dealer-1.com", "status": "added", "domain": { "id": 412 } },
    { "url": "example-dealer-2.com", "status": "skipped", "reason": "already_exists" },
    { "url": "example-dealer-3.com", "status": "added", "domain": { "id": 413 } }
  ]
}

List vehicles for a domain by clean domain name

GET/api/domains/{clean_domain}/vehicles

Return paginated vehicle listings for a single dealer identified by its clean domain name (for example, example-dealer.com).

NameTypeRequiredDescription
clean_domainstring (path)Yese.g., example-dealer.com
statusstring (query)Noactive | removed | all
conditionstring (query)Nonew | used | cpo
makestring (query)NoVehicle manufacturer name (for example, Honda, Toyota)
modelstring (query)NoVehicle model name (for example, Accord, Camry)
min_pricenumber (query)NoMinimum listing price in USD
max_pricenumber (query)NoMaximum listing price in USD
min_yearinteger (query)NoMinimum model year (inclusive)
max_yearinteger (query)NoMaximum model year (inclusive)
has_imagesboolean (query)NoWhen true, return only vehicles with at least one photo
has_priceboolean (query)NoWhen true, return only vehicles with a listed price
limitinteger (query)NoDefault 100, max 1000
offsetinteger (query)NoZero-based pagination offset
CURLGET /api/domains/{clean_domain}/vehicles
curl -sS "https://api.motorsdynamic.com/api/domains/example-dealer.com/vehicles?status=active&limit=100" \
  -H "X-API-Key: YOUR_API_KEY"
RESPONSE200 OK
{
  "vehicles": [
    {
      "id": 887412,
      "vin": "1HGCV1F34LA123456",
      "year": 2023,
      "make": "Honda",
      "model": "Accord",
      "trim": "EX-L",
      "condition": "Used",
      "price": "28995.00",
      "mileage": 18420,
      "clean_domain": "example-dealer.com",
      "is_active": true
    }
  ],
  "total": 412,
  "limit": 100,
  "offset": 0
}

Get a domain by numeric ID

GET/api/domains/id/{id}

Retrieve a single domain record by numeric ID, including recent scrape jobs and active/total vehicle counts.

NameTypeRequiredDescription
idinteger (path)YesNumeric resource identifier
CURLGET /api/domains/id/{id}
curl -sS "https://api.motorsdynamic.com/api/domains/id/42" \
  -H "X-API-Key: YOUR_API_KEY"
RESPONSE200 OK
{
  "domain": {
    "id": 42,
    "url": "https://www.example-dealer.com",
    "clean_domain": "example-dealer.com",
    "cms_type": "dealeron",
    "is_active": true,
    "last_scraped_at": "2026-10-30T06:12:00.000Z",
    "vehicle_count": 412
  },
  "vehicleStats": { "total": 485, "active": 412 },
  "recentJobs": [
    { "id": 9821, "job_type": "scrape", "status": "completed", "vehicles_found": 412 }
  ]
}

Trigger a manual scrape

POST/api/domains/{id}/scan

Queue an immediate inventory scrape job for a tracked domain and return the queued job ID.

NameTypeRequiredDescription
idinteger (path)YesNumeric resource identifier
CURLPOST /api/domains/{id}/scan
curl -sS -X POST "https://api.motorsdynamic.com/api/domains/42/scan" \
  -H "X-API-Key: YOUR_API_KEY"
RESPONSE200 OK
{
  "message": "Domain queued for scraping",
  "domain": { "id": 42 },
  "jobId": 9845
}

Deactivate a domain

DELETE/api/domains/{id}

Soft-deactivate a domain to stop recurring scrapes while preserving historical vehicle records.

NameTypeRequiredDescription
idinteger (path)YesNumeric resource identifier
CURLDELETE /api/domains/{id}
curl -sS -X DELETE "https://api.motorsdynamic.com/api/domains/42" \
  -H "X-API-Key: YOUR_API_KEY"
RESPONSE200 OK
{
  "message": "Domain deactivated",
  "domain": { "id": 42, "clean_domain": "example-dealer.com", "is_active": false }
}

Reactivate a deactivated domain

POST/api/domains/{id}/reactivate

Re-enable a previously deactivated domain and resume scheduled inventory scraping.

NameTypeRequiredDescription
idinteger (path)YesNumeric resource identifier
CURLPOST /api/domains/{id}/reactivate
curl -sS -X POST "https://api.motorsdynamic.com/api/domains/42/reactivate" \
  -H "X-API-Key: YOUR_API_KEY"
RESPONSE200 OK
{
  "message": "Domain reactivated",
  "domain": { "id": 42, "clean_domain": "example-dealer.com", "is_active": true }
}

Get CMS platform distribution

GET/api/domains/cms-distribution

Return the count of tracked domains grouped by detected dealer website CMS platform.

NameTypeRequiredDescription
None--No parameters required
CURLGET /api/domains/cms-distribution
curl -sS "https://api.motorsdynamic.com/api/domains/cms-distribution" \
  -H "X-API-Key: YOUR_API_KEY"
RESPONSE200 OK
{
  "distribution": [
    { "cms_type": "dealeron", "count": 48 },
    { "cms_type": "dealer-inspire", "count": 39 },
    { "cms_type": "dealercom", "count": 31 }
  ]
}

Primary Dealers - manage your own dealer rooftops.

Primary dealer records link your own rooftops to tracked domains for analytics, quality audits, and VLA feeds.

MethodEndpointPurpose
GET/api/my-dealersList all primary (own) dealerships configured under your account for dealer analytics, quality audits, and feed management.
POST/api/my-dealersRegister a primary dealership profile and link it to a tracked domain ID.
PUT/api/my-dealers/{id}Update the profile, address, OEM brand, or linked domain ID of a primary dealer.
DELETE/api/my-dealers/{id}Remove a primary dealer record by ID.

List primary dealers

GET/api/my-dealers

List all primary (own) dealerships configured under your account for dealer analytics, quality audits, and feed management.

NameTypeRequiredDescription
None--No parameters required
CURLGET /api/my-dealers
curl -sS "https://api.motorsdynamic.com/api/my-dealers" \
  -H "X-API-Key: YOUR_API_KEY"
RESPONSE200 OK
{
  "dealers": [
    {
      "id": 12,
      "name": "Example Motors",
      "domain_id": 42,
      "website": "https://www.example-dealer.com",
      "oem_brand": "Honda",
      "city": "Pittsburgh",
      "state": "PA",
      "postal_code": "15205"
    }
  ]
}

Create a primary dealer

POST/api/my-dealers

Register a primary dealership profile and link it to a tracked domain ID.

NameTypeRequiredDescription
namestring (body)YesPrimary dealership name
domain_idinteger (body)NoAssociated tracked domain ID
websitestring (body)NoDealership website URL
oem_brandstring (body)NoPrimary OEM brand
addressstring (body)NoStreet address
citystring (body)NoCity
statestring (body)NoTwo-letter state code
postal_codestring (body)NoZIP or postal code
phonestring (body)NoDealership phone number
CURLPOST /api/my-dealers
curl -sS -X POST "https://api.motorsdynamic.com/api/my-dealers" \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name": "Example Motors", "domain_id": 42, "website": "https://www.example-dealer.com", "oem_brand": "Honda", "city": "Pittsburgh", "state": "PA", "postal_code": "15205"}'
RESPONSE201 Created
{
  "dealer": {
    "id": 12,
    "name": "Example Motors",
    "domain_id": 42,
    "website": "https://www.example-dealer.com",
    "oem_brand": "Honda"
  }
}

Update a primary dealer

PUT/api/my-dealers/{id}

Update the profile, address, OEM brand, or linked domain ID of a primary dealer.

NameTypeRequiredDescription
idinteger (path)YesNumeric resource identifier
namestring (body)NoUpdated dealership name
domain_idinteger (body)NoUpdated tracked domain ID
websitestring (body)NoUpdated website URL
oem_brandstring (body)NoUpdated OEM brand
addressstring (body)NoUpdated street address
citystring (body)NoUpdated city
statestring (body)NoUpdated state code
postal_codestring (body)NoUpdated postal code
phonestring (body)NoUpdated phone number
CURLPUT /api/my-dealers/{id}
curl -sS -X PUT "https://api.motorsdynamic.com/api/my-dealers/12" \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name": "Example Motors West", "phone": "412-555-0199"}'
RESPONSE200 OK
{
  "dealer": {
    "id": 12,
    "name": "Example Motors West",
    "domain_id": 42,
    "phone": "412-555-0199"
  }
}

Delete a primary dealer

DELETE/api/my-dealers/{id}

Remove a primary dealer record by ID.

NameTypeRequiredDescription
idinteger (path)YesNumeric resource identifier
CURLDELETE /api/my-dealers/{id}
curl -sS -X DELETE "https://api.motorsdynamic.com/api/my-dealers/12" \
  -H "X-API-Key: YOUR_API_KEY"
RESPONSE200 OK
{
  "message": "Primary dealer deleted",
  "id": 12
}

Portfolio Rollups - cross-rooftop inventory, conflicts & benchmarks.

Aggregate inventory totals, aging metrics, cross-dealer VIN pricing conflicts, and rooftop benchmarks across your portfolio.

MethodEndpointPurpose
GET/api/portfolio/summaryReturn aggregate inventory counts, unread alert totals, and domain health across all dealers in your portfolio.
GET/api/portfolio/dealersReturn a per-dealer summary table with active inventory counts, aging breakdown, and average engagement score.
GET/api/portfolio/conflictsIdentify VINs listed simultaneously at multiple rooftops in your portfolio with mismatched prices.
GET/api/portfolio/benchmarksCompare price competitiveness, median days on lot, and listing quality across all rooftops in your portfolio.

Get portfolio summary

GET/api/portfolio/summary

Return aggregate inventory counts, unread alert totals, and domain health across all dealers in your portfolio.

NameTypeRequiredDescription
None--No parameters required
CURLGET /api/portfolio/summary
curl -sS "https://api.motorsdynamic.com/api/portfolio/summary" \
  -H "X-API-Key: YOUR_API_KEY"
RESPONSE200 OK
{
  "total_dealers": 18,
  "active_vehicles": 7420,
  "unread_alerts": 14,
  "healthy_domains": 18
}

Get per-dealer portfolio rollup

GET/api/portfolio/dealers

Return a per-dealer summary table with active inventory counts, aging breakdown, and average engagement score.

NameTypeRequiredDescription
None--No parameters required
CURLGET /api/portfolio/dealers
curl -sS "https://api.motorsdynamic.com/api/portfolio/dealers" \
  -H "X-API-Key: YOUR_API_KEY"
RESPONSE200 OK
{
  "dealers": [
    {
      "dealer_id": 12,
      "name": "Example Motors",
      "clean_domain": "example-dealer.com",
      "active_vehicles": 412,
      "stale_46_plus": 38,
      "avg_engagement_score": 74.2
    }
  ]
}

Get cross-dealer VIN and pricing conflicts

GET/api/portfolio/conflicts

Identify VINs listed simultaneously at multiple rooftops in your portfolio with mismatched prices.

NameTypeRequiredDescription
None--No parameters required
CURLGET /api/portfolio/conflicts
curl -sS "https://api.motorsdynamic.com/api/portfolio/conflicts" \
  -H "X-API-Key: YOUR_API_KEY"
RESPONSE200 OK
{
  "conflicts": [
    {
      "vin": "1HGCV1F34LA123456",
      "min_price": 28495,
      "max_price": 28995,
      "variance": 500,
      "dealers": ["example-dealer.com", "example-dealer-north.com"]
    }
  ]
}

Get cross-dealer portfolio benchmarks

GET/api/portfolio/benchmarks

Compare price competitiveness, median days on lot, and listing quality across all rooftops in your portfolio.

NameTypeRequiredDescription
None--No parameters required
CURLGET /api/portfolio/benchmarks
curl -sS "https://api.motorsdynamic.com/api/portfolio/benchmarks" \
  -H "X-API-Key: YOUR_API_KEY"
RESPONSE200 OK
{
  "benchmarks": [
    {
      "dealer_id": 12,
      "name": "Example Motors",
      "median_days_on_lot": 27,
      "below_market_share": 0.42,
      "avg_quality_score": 91.5
    }
  ]
}

Scrape Job Status - monitor asynchronous CMS detect & scrape jobs.

Track queued, running, and completed scrape jobs created during domain onboarding or manual scans.

MethodEndpointPurpose
GET/api/jobsList recent asynchronous CMS detection, inventory scrape, and VIN decode jobs with status and domain filters.
GET/api/jobs/{id}Retrieve execution details, vehicle counts, and timing for a single scrape job by ID.
GET/api/scrape/status/{jobId}Poll the current execution status of a queued or running scrape job by job ID.

List recent scrape jobs

GET/api/jobs

List recent asynchronous CMS detection, inventory scrape, and VIN decode jobs with status and domain filters.

NameTypeRequiredDescription
statusstring (query)Nopending | running | completed | failed
job_typestring (query)Nocms_detect | scrape | vin_decode
domain_idinteger (query)NoFilter by numeric domain identifier
limitinteger (query)NoMaximum number of results to return per page
offsetinteger (query)NoZero-based pagination offset
CURLGET /api/jobs
curl -sS "https://api.motorsdynamic.com/api/jobs?domain_id=42&status=completed&limit=20" \
  -H "X-API-Key: YOUR_API_KEY"
RESPONSE200 OK
{
  "jobs": [
    {
      "id": 9845,
      "domain_id": 42,
      "job_type": "scrape",
      "status": "completed",
      "vehicles_found": 412,
      "started_at": "2026-10-30T06:10:02.000Z",
      "completed_at": "2026-10-30T06:12:00.000Z"
    }
  ]
}

Get single job detail

GET/api/jobs/{id}

Retrieve execution details, vehicle counts, and timing for a single scrape job by ID.

NameTypeRequiredDescription
idinteger (path)YesNumeric resource identifier
CURLGET /api/jobs/{id}
curl -sS "https://api.motorsdynamic.com/api/jobs/9845" \
  -H "X-API-Key: YOUR_API_KEY"
RESPONSE200 OK
{
  "job": {
    "id": 9845,
    "domain_id": 42,
    "job_type": "scrape",
    "status": "completed",
    "vehicles_found": 412,
    "vehicles_added": 6,
    "vehicles_removed": 4,
    "duration_ms": 118000
  }
}

Poll lightweight scrape job status

GET/api/scrape/status/{jobId}

Poll the current execution status of a queued or running scrape job by job ID.

NameTypeRequiredDescription
jobIdinteger (path)YesNumeric scrape job identifier
CURLGET /api/scrape/status/{jobId}
curl -sS "https://api.motorsdynamic.com/api/scrape/status/9845" \
  -H "X-API-Key: YOUR_API_KEY"
RESPONSE200 OK
{
  "jobId": 9845,
  "status": "completed",
  "vehicles_found": 412
}