{
  "openapi": "3.0.3",
  "info": {
    "title": "AclipA",
    "description": "AclipA — AI-powered demo videos, automated site monitoring & testing, and step-by-step guide generation from any URL. Currently in pre-launch; join the waitlist for early access.",
    "version": "0.1.0",
    "contact": {
      "url": "https://aclipa.com/contact"
    }
  },
  "servers": [
    { "url": "https://aclipa.com" }
  ],
  "paths": {
    "/waitlist_join": {
      "post": {
        "summary": "Join the waitlist",
        "description": "Submit an email address to join the AclipA early-access waitlist.",
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "required": ["wl_email"],
                "properties": {
                  "wl_email": {
                    "type": "string",
                    "format": "email",
                    "description": "Applicant email address"
                  },
                  "company_url": {
                    "type": "string",
                    "format": "uri",
                    "description": "Optional company website URL"
                  },
                  "interest_video": {
                    "type": "integer",
                    "enum": [1],
                    "description": "Interest in URL-to-demo-video feature"
                  },
                  "interest_monitoring": {
                    "type": "integer",
                    "enum": [1],
                    "description": "Interest in automated site monitoring and testing"
                  },
                  "interest_guides": {
                    "type": "integer",
                    "enum": [1],
                    "description": "Interest in AI step-by-step guide generation"
                  },
                  "csrf_token": {
                    "type": "string",
                    "description": "CSRF protection token (obtain from page load)"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Plain-text result code",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string",
                  "enum": ["ok", "duplicate", "invalid", "error"]
                }
              }
            }
          }
        }
      }
    },
    "/contact_send": {
      "post": {
        "summary": "Send a contact message",
        "description": "Submit a contact form message to the AclipA team.",
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "required": ["name", "email", "message"],
                "properties": {
                  "name": { "type": "string" },
                  "email": { "type": "string", "format": "email" },
                  "message": { "type": "string" },
                  "csrf_token": { "type": "string" }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Plain-text result code",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string",
                  "enum": ["ok", "invalid", "error"]
                }
              }
            }
          }
        }
      }
    }
  }
}
