API Documentation

Falcon Configurator REST API Endpoints

Public Endpoints

GET /api/markets

Get list of available markets

GET /api/vehicles?market=UK

Get vehicles for a market

GET /api/features?market=UK

Get features for a market

GET /api/availability?market=UK&vehicle=...

Get availability matrix

GET /api/pricing?market=UK&vehicle=...

Get pricing information

GET /api/tech?vehicle=...

Get technical specifications

Author Endpoints (requires authentication)

POST /api/author/upload

Upload Excel file

POST /api/author/ai-edit

Apply AI-powered edits

POST /api/author/save

Save working configuration

POST /api/author/discard

Discard working configuration

GET /api/author/status

Get data status and validation

GET /api/author/history

Get change history

POST /api/author/revert/<id>

Revert to a previous state

Example Usage

// Get all markets
fetch('/api/markets')
  .then(res => res.json())
  .then(markets => console.log(markets));

// Get vehicles for UK market
fetch('/api/vehicles?market=UK')
  .then(res => res.json())
  .then(vehicles => console.log(vehicles));

// Get pricing for specific vehicle
fetch('/api/pricing?market=UK&vehicle=Falcon%20%7C%201.6L%20Petrol%20%7C%20Hatchback%20%7C%20Base')
  .then(res => res.json())
  .then(pricing => console.log(pricing));