{
  "openapi": "3.0.3",
  "info": {
    "title": "SpeakUp Reservation API",
    "description": "Reserve a coaching spot with SpeakUp. SpeakUp accepts 2 new clients per month. Submit an email address to request a free introductory call with Boaz Ziniman.",
    "version": "1.0.0",
    "contact": {
      "email": "contact@speakup.dev",
      "url": "https://speakup.dev"
    }
  },
  "servers": [
    {
      "url": "https://4td4gcy3v2.execute-api.eu-west-1.amazonaws.com",
      "description": "SpeakUp Reservation API"
    }
  ],
  "paths": {
    "/reserve": {
      "post": {
        "operationId": "reserveSpot",
        "summary": "Request a coaching spot",
        "description": "Submit an email address to request an introductory call with SpeakUp. The user receives a confirmation email, and Boaz follows up to discuss fit, goals, and availability. Only 2 new clients are accepted per month.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": ["email"],
                "properties": {
                  "email": {
                    "type": "string",
                    "format": "email",
                    "description": "The email address of the person requesting a coaching spot.",
                    "example": "jane@example.com"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Reservation request received. Confirmation email sent to the user.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request. Email is missing or malformed.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string",
                      "example": "Invalid email address"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Server error. Reservation could not be processed.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string",
                      "example": "Failed to send email"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}
