{
  "openapi": "3.0.0",
  "info": {
    "title": "Vimutti Labs Agent API",
    "description": "API endpoints for submitting AI Readiness Assessments and booking free consultations with Vimutti Labs.",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://vimuttilabs.com",
      "description": "Production Server"
    }
  ],
  "paths": {
    "/api/submit": {
      "post": {
        "summary": "Submit AI Readiness Assessment",
        "description": "Submits an enterprise AI readiness assessment form to Vimutti Labs.",
        "requestBody": {
          "required": true,
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "$ref": "#/components/schemas/AssessmentSubmission"
              }
            },
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/AssessmentSubmission"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Assessment submitted successfully.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    }
                  },
                  "required": [
                    "success"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Invalid request or validation failure.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string",
                      "example": "Invalid request format"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Internal server error.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string",
                      "example": "Server configuration error: Missing API Key"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/api/book-meeting": {
      "post": {
        "summary": "Book a Free Consulting Session",
        "description": "Books/orders a free 30-minute AI readiness consulting session.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MeetingBooking"
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "$ref": "#/components/schemas/MeetingBooking"
              }
            },
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/MeetingBooking"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Meeting booked successfully.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "message": {
                      "type": "string",
                      "example": "Meeting booked successfully!"
                    }
                  },
                  "required": [
                    "success",
                    "message"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Invalid request or validation failure.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string",
                      "example": "Validation error: Missing required fields"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Internal server error.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string",
                      "example": "Failed to book meeting"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "AssessmentSubmission": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Contact person name"
          },
          "email": {
            "type": "string",
            "format": "email",
            "description": "Corporate email address"
          },
          "org": {
            "type": "string",
            "description": "Company/Organization name"
          },
          "message": {
            "type": "string",
            "description": "Current bottlenecks or objectives"
          },
          "objective": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Assessment objectives"
          },
          "website": {
            "type": "string",
            "description": "Company/Organization website URL"
          },
          "fax": {
            "type": "string",
            "description": "Honeypot anti-spam field (MUST leave empty)"
          },
          "form_load_time": {
            "type": "string",
            "description": "Form load epoch timestamp in milliseconds"
          },
          "form_submit_time": {
            "type": "string",
            "description": "Form submit epoch timestamp in milliseconds"
          }
        },
        "required": [
          "name",
          "email",
          "org"
        ]
      },
      "MeetingBooking": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Contact person name"
          },
          "email": {
            "type": "string",
            "format": "email",
            "description": "Corporate email address"
          },
          "org": {
            "type": "string",
            "description": "Company/Organization name"
          },
          "message": {
            "type": "string",
            "description": "Topics or maturity levels to focus on"
          },
          "website": {
            "type": "string",
            "description": "Company/Organization website URL"
          },
          "fax": {
            "type": "string",
            "description": "Honeypot anti-spam field (MUST leave empty)"
          },
          "form_load_time": {
            "type": "string",
            "description": "Form load epoch timestamp in milliseconds"
          },
          "form_submit_time": {
            "type": "string",
            "description": "Form submit epoch timestamp in milliseconds"
          }
        },
        "required": [
          "name",
          "email",
          "org"
        ]
      }
    }
  }
}
