{
  "openapi": "3.1.0",
  "info": {
    "title": "SINGER COMMERCE website review request",
    "version": "1.0.0",
    "description": "Request an AI search visibility website review from SINGER COMMERCE on behalf of a business owner. Use only with the owner's consent and the owner's own work email address. SINGER COMMERCE replies by email to arrange a 15-minute call."
  },
  "servers": [
    {
      "url": "https://singercommerce.com"
    }
  ],
  "paths": {
    "/api/signup": {
      "post": {
        "operationId": "requestWebsiteReview",
        "summary": "Request a website review",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "email"
                ],
                "properties": {
                  "email": {
                    "type": "string",
                    "format": "email",
                    "description": "The business owner's work email address."
                  },
                  "source": {
                    "type": "string",
                    "enum": [
                      "agent"
                    ],
                    "description": "Set to \"agent\" when an AI agent sends the request."
                  }
                }
              },
              "example": {
                "email": "owner@example.com",
                "source": "agent"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The request was received.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "type": "boolean"
                    }
                  }
                },
                "example": {
                  "ok": true
                }
              }
            }
          },
          "400": {
            "description": "The email address is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "type": "boolean"
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "The form is temporarily unavailable. Email hello@singercommerce.com instead."
          }
        }
      }
    }
  }
}
