{
  "openapi": "3.0.3",
  "info": {
    "title": "GCBM LLC - Autonomous Manufacturing RFQ Gateway",
    "description": "Agent-to-Agent (A2A) API endpoint for submitting manufacturing requests to GCBM LLC in Moses Lake, WA. Requests are queued for automated pricing and a quote is sent to the contact email provided.",
    "version": "1.0.0",
    "contact": {
      "name": "GCBM LLC",
      "url": "https://gcbmtech.com"
    }
  },
  "servers": [
    {
      "url": "https://gcbmtech.com/api",
      "description": "Cloudflare Edge Gateway"
    }
  ],
  "paths": {
    "/rfq": {
      "post": {
        "summary": "Submit an RFQ or CAD file for automated analysis and pricing",
        "operationId": "submitRFQ",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "client_name": { "type": "string" },
                  "company_name": { "type": "string" },
                  "contact_phone": { "type": "string" },
                  "contact_email": {
                    "type": "string",
                    "format": "email",
                    "description": "Where the quote should be sent. Strongly recommended even though not strictly required."
                  },
                  "service_requested": {
                    "type": "string",
                    "enum": ["reverse_engineering", "cmm_scanning", "waterjet_cutting", "3d_printing"]
                  },
                  "project_description": { "type": "string" },
                  "cad_file_url": {
                    "type": "string",
                    "format": "uri",
                    "description": "Publicly reachable URL to a STEP, IGES, STL, PLY, or DXF file"
                  }
                },
                "required": ["client_name", "service_requested", "project_description"]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Payload queued successfully for pricing",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": { "type": "string", "example": "queued" },
                    "tracking_id": { "type": "string", "example": "GCBM-10492" },
                    "message": { "type": "string", "example": "Request ingested. Your quote is being calculated and will be sent by email." }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Malformed or incomplete RFQ",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": { "type": "string" },
                    "message": { "type": "string" }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}
