{
  "openapi": "3.1.0",
  "info": {
    "title": "Rank Jockey SEO Agency API",
    "description": "API for requesting SEO audits, retrieving service information, and submitting inquiries to Rank Jockey SEO Agency — NYC's engineering-led search optimization firm.",
    "version": "1.0.0",
    "contact": {
      "name": "Rank Jockey SEO Agency",
      "url": "https://rankjockey.com/contact/",
      "email": "info@rankjockey.com"
    },
    "license": {
      "name": "Proprietary",
      "url": "https://rankjockey.com/contact/"
    }
  },
  "servers": [
    {
      "url": "https://rankjockey.com",
      "description": "Rank Jockey Production Server"
    }
  ],
  "paths": {
    "/send-mail.php": {
      "post": {
        "operationId": "submitSEOInquiry",
        "summary": "Submit an SEO inquiry or audit request",
        "description": "Submit a contact form to request a free forensic SEO audit or schedule a consultation with a Rank Jockey search engineer. A senior engineer responds within 4 business hours with an initial assessment.",
        "tags": ["Inquiries"],
        "requestBody": {
          "required": true,
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "type": "object",
                "required": ["name", "email"],
                "properties": {
                  "name": {
                    "type": "string",
                    "description": "Full name of the person requesting the audit or consultation"
                  },
                  "email": {
                    "type": "string",
                    "format": "email",
                    "description": "Business email address for the response"
                  },
                  "website": {
                    "type": "string",
                    "format": "uri",
                    "description": "Website URL to be audited"
                  },
                  "phone": {
                    "type": "string",
                    "description": "Contact phone number (optional)"
                  },
                  "company": {
                    "type": "string",
                    "description": "Company or brand name (optional)"
                  },
                  "message": {
                    "type": "string",
                    "description": "Additional context about SEO goals, current issues, or target markets"
                  },
                  "budget": {
                    "type": "string",
                    "enum": [
                      "$2,500 - $5,000 / month",
                      "$5,000 - $10,000 / month",
                      "$10,000 - $25,000 / month",
                      "$25,000+ / month"
                    ],
                    "description": "Monthly SEO investment budget range"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Inquiry submitted successfully",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "description": "Whether the inquiry was received"
                    },
                    "message": {
                      "type": "string",
                      "description": "Confirmation message for the user"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Validation error — name and email are required",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": { "type": "boolean" },
                    "message": { "type": "string" }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}
