{
  "openapi": "3.1.0",
  "info": {
    "title": "Tesla MR Site Interest API",
    "version": "1.0.0",
    "description": "Submit a site partnership or employer interest request for Tesla MR Institute."
  },
  "servers": [
    {
      "url": "https://teslamr.com"
    }
  ],
  "paths": {
    "/api/site-interest": {
      "post": {
        "summary": "Submit site interest",
        "description": "Creates a site interest submission and emails the Tesla MR partnerships team.",
        "operationId": "submitSiteInterest",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "firstName",
                  "lastName",
                  "email",
                  "phone",
                  "company",
                  "address",
                  "website",
                  "startedAt"
                ],
                "properties": {
                  "firstName": {
                    "type": "string",
                    "minLength": 2,
                    "maxLength": 50
                  },
                  "lastName": {
                    "type": "string",
                    "minLength": 2,
                    "maxLength": 50
                  },
                  "email": {
                    "type": "string",
                    "format": "email",
                    "minLength": 5,
                    "maxLength": 120
                  },
                  "phone": {
                    "type": "string",
                    "minLength": 10,
                    "maxLength": 25
                  },
                  "company": {
                    "type": "string",
                    "minLength": 2,
                    "maxLength": 120
                  },
                  "address": {
                    "type": "string",
                    "minLength": 8,
                    "maxLength": 180
                  },
                  "message": {
                    "type": "string",
                    "maxLength": 1500
                  },
                  "website": {
                    "type": "string",
                    "description": "Honeypot field. Leave empty for valid submissions."
                  },
                  "startedAt": {
                    "type": "integer",
                    "format": "int64",
                    "description": "Client-side form start timestamp in milliseconds."
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Submission accepted",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "success"
                  ],
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "const": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Server error",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}