{
  "openapi": "3.1.0",
  "info": {
    "title": "NameVori Algorithmic Name Combiner API",
    "description": "Algorithmic name blending API to combine two to four names into phonetic portmanteaus with linguistic harmony scoring.",
    "version": "1.0.0",
    "contact": {
      "name": "NameVori Support",
      "url": "https://namevori.com/contact"
    }
  },
  "servers": [
    {
      "url": "https://namevori.com",
      "description": "Production Server"
    }
  ],
  "paths": {
    "/api/combine": {
      "post": {
        "operationId": "combineNames",
        "summary": "Combine multiple names into phonetic portmanteaus",
        "description": "Blends two to four names using syllable fusion, vowel harmony transitions, and balanced letter interleaving.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": ["names"],
                "properties": {
                  "names": {
                    "type": "array",
                    "items": { "type": "string" },
                    "minItems": 2,
                    "maxItems": 4,
                    "description": "List of names to combine (e.g. ['Alex', 'Jordan'])"
                  },
                  "style": {
                    "type": "string",
                    "enum": ["all", "balanced", "first-dominant", "second-dominant", "interleaved", "portmanteau"],
                    "default": "all",
                    "description": "Blending algorithm pattern"
                  },
                  "maxLength": {
                    "type": "integer",
                    "minimum": 3,
                    "maximum": 30,
                    "default": 14,
                    "description": "Maximum character length of generated blends"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Generated name combinations list",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "results": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "name": { "type": "string" },
                          "style": { "type": "string" },
                          "score": { "type": "number" },
                          "syllables": { "type": "integer" }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}
