{
  "openapi": "3.0.1",
  "info": {
    "title": "Innochip Nexus & DetailerQuote48 (DQ48) API",
    "description": "Unified API for AI-first car detailing quotations in Austin, Texas and Innochip Nexus compute mesh node management.",
    "version": "v1"
  },
  "servers": [
    {
      "url": "https://innochipus.com"
    }
  ],
  "paths": {
    "/api/v1/dq48/quotes/inquire": {
      "post": {
        "operationId": "inquireDetailerQuote",
        "summary": "Request an instant discounted car detailing quote in Austin, Texas",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "vehicle_type": {
                    "type": "string",
                    "enum": [
                      "Sedan",
                      "SUV",
                      "Truck",
                      "Van"
                    ]
                  },
                  "service_type": {
                    "type": "string",
                    "enum": [
                      "express_exterior",
                      "interior_deep_detail",
                      "complete_detail",
                      "ceramic_coating_prep"
                    ]
                  },
                  "austin_zone": {
                    "type": "string",
                    "enum": [
                      "zone_south_austin",
                      "zone_downtown_central",
                      "zone_north_domain",
                      "zone_westlake_hills",
                      "zone_round_rock_cedar"
                    ]
                  },
                  "preferred_time": {
                    "type": "string",
                    "enum": [
                      "weekday_morning",
                      "weekday_afternoon",
                      "weekend_morning",
                      "weekend_afternoon"
                    ]
                  }
                },
                "required": [
                  "vehicle_type",
                  "service_type",
                  "austin_zone"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Quotation details with market average comparison and savings",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string"
                    },
                    "quote_id": {
                      "type": "string"
                    },
                    "service_name": {
                      "type": "string"
                    },
                    "market_average_usd": {
                      "type": "number"
                    },
                    "dq48_price_usd": {
                      "type": "number"
                    },
                    "savings_usd": {
                      "type": "number"
                    },
                    "savings_percent": {
                      "type": "string"
                    },
                    "matched_detailer_tier": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/dq48/coverage/austin": {
      "get": {
        "operationId": "getAustinCoverageZones",
        "summary": "List supported Austin coverage zones and liquidity status",
        "responses": {
          "200": {
            "description": "Active Austin coverage zones"
          }
        }
      }
    },
    "/api/v1/nexus/nodes/fleet": {
      "get": {
        "operationId": "getFleetStatus",
        "summary": "Retrieve registered Innochip Nexus compute fleet devices",
        "responses": {
          "200": {
            "description": "List of active compute nodes and hardware specs"
          }
        }
      }
    },
    "/api/v1/nexus/nodes/register": {
      "post": {
        "operationId": "registerNexusNode",
        "summary": "Register a new local PC compute node into the Nexus Mesh",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "nexus_token": { "type": "string" },
                  "node_id": { "type": "string" },
                  "node_name": { "type": "string" },
                  "platform": { "type": "string" },
                  "cpu_count": { "type": "integer" }
                },
                "required": ["nexus_token", "node_id"]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Node enrolled into fleet"
          }
        }
      }
    }
  }
}