🚗 VehicleStock API

✅ API Status: Running on port 3001
⚠️ Authentication Required
All API endpoints require JWT Bearer token authentication. This page is for API documentation only.

Authentication

Obtain a JWT token from the VDT API:

POST https://web.gates.co.uk/VDTAPIB/token

Then include the jwt_token in all requests:

Authorization: Bearer {your_jwt_token}

Available Endpoints

Health & Status

GET /health

Vehicle Stock 🔒 Auth Required

GET /api/vehiclestock
GET /api/vehiclemedia
GET /api/vehiclemedia/images
GET /api/vehiclemedia/videos
GET /api/vehiclemedia/exterior360
GET /api/vehiclemedia/interior360

Saved Filters 🔒 Auth Required

GET /api/savedfilters
POST /api/savedfilters
PUT /api/savedfilters/:id
DELETE /api/savedfilters/:id

Vehicle Stock Operations 🔒 Auth Required

POST /api/vehicle-stock/autotrader/vehicle-lookup
GET /api/vehicle-stock/autotrader/vehicle-data/:stockId
GET /api/vehicle-stock/features/selected/:registration
POST /api/vehicle-stock/features/selected
DELETE /api/vehicle-stock/features/selected/:id
GET /api/vehicle-stock/features/combined/:registration
GET /api/vehicle-stock/vehicle-change-log/:stockId
GET /api/vehicle-stock/vehicle-change-log/:stockId/summary

Autotrader Integration 🔒 Auth Required

GET /api/autotrader/test
GET /api/autotrader/advertisers
POST /api/autotrader/vehicle-lookup
GET /api/autotrader/vehicle-data/:vehicleId

Automation & Jobs 🔒 Auth Required

GET /api/automation/logs/:routineName
GET /api/automation/logs/summary
GET /api/automation/logs/recent
GET/POST /api/automation/logs/trigger/:routineName

Baseline Stock 🔒 Auth Required

GET /api/baseline-stock/summary
POST /api/baseline-stock/retrieve
POST /api/baseline-stock/retrieve/:advertiserId

Documentation

Quick Test

Test authentication with curl:

curl -H "Authorization: Bearer {token}" http://localhost:3001/api/vehiclestock