{
  "openapi": "3.1.0",
  "info": {
    "title": "Kentucky Diesel Repair \u2014 24/7 Roadside Triage & Dispatch API",
    "version": "1.0.0",
    "description": "AI Chatbot and Agent API for Kentucky Diesel Repair (Walton, KY \u2014 859-910-6000). Provides live highway corridor ETAs along I-75/I-71/I-275/I-64, SAE J1939 SPN/FMI fault code roadside triage, and 24/7 emergency dispatch ticket creation."
  },
  "servers": [
    {
      "url": "https://kydieselrepair.com"
    }
  ],
  "paths": {
    "/api/service-info": {
      "get": {
        "operationId": "getServiceInfo",
        "summary": "Get live 24/7 dispatch phone, highway exit ETA matrix, capabilities, and E-E-A-T blog metadata.",
        "responses": {
          "200": {
            "description": "Service information JSON"
          }
        }
      }
    },
    "/api/triage": {
      "post": {
        "operationId": "triageFaultOrSymptom",
        "summary": "Diagnose an SAE J1939 SPN/FMI fault code or roadside breakdown symptom and return severity, safe-to-drive advice, repair plan, and ETA from Walton, KY.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "code": {
                    "type": "string",
                    "description": "Active fault code e.g. SPN 4364 FMI 18 or SPN 3251"
                  },
                  "symptom": {
                    "type": "string",
                    "description": "Breakdown symptom e.g. 5 mph DEF derate, blown steer tire, 30/30 brake chamber"
                  },
                  "location": {
                    "type": "string",
                    "description": "Highway and exit/mile marker e.g. I-75 Exit 171 Walton KY"
                  },
                  "engine": {
                    "type": "string",
                    "description": "Engine or truck platform e.g. Cummins X15, Detroit DD15, PACCAR MX-13"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Triage diagnosis and ETA JSON"
          }
        }
      }
    },
    "/api/dispatch": {
      "post": {
        "operationId": "createEmergencyDispatchTicket",
        "summary": "Log a 24/7 emergency roadside truck/trailer repair dispatch request in Walton, KY.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "phone",
                  "highway_location"
                ],
                "properties": {
                  "driver_name": {
                    "type": "string"
                  },
                  "phone": {
                    "type": "string"
                  },
                  "company_or_dot": {
                    "type": "string"
                  },
                  "highway_location": {
                    "type": "string"
                  },
                  "truck_make_engine": {
                    "type": "string"
                  },
                  "issue_type": {
                    "type": "string"
                  },
                  "fault_codes": {
                    "type": "string"
                  },
                  "notes": {
                    "type": "string"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Dispatch ticket confirmation JSON"
          }
        }
      }
    }
  }
}