{
  "openapi": "3.1.0",
  "info": {
    "title": "ISAR public API",
    "version": "1.0.0",
    "description": "Read-only catalog and company API for ISAR (ISARJR MMC), interior door manufacturer in Azerbaijan. Inquiry creates a contact payload for human sales; it does not charge a card.",
    "contact": {
      "name": "ISARJR MMC",
      "email": "contact@isar.az",
      "url": "https://isar.az/"
    }
  },
  "x-service-info": {
    "categories": ["manufacturing", "interior-doors", "azerbaijan"],
    "merchant": "ISARJR MMC"
  },
  "servers": [
    { "url": "https://isar.az" }
  ],
  "paths": {
    "/api/company.json": {
      "get": {
        "operationId": "getCompany",
        "summary": "Company entity",
        "responses": {
          "200": { "description": "Company JSON" }
        }
      }
    },
    "/api/catalog.json": {
      "get": {
        "operationId": "getCatalog",
        "summary": "Interior door models, AZN prices, and official photo URLs",
        "description": "Static JSON for AI agents. Primary `image` is HTTPS JPEG on /images_chat/ for Markdown chat display (![name](image)). Also image_png/image_webp and chat_markdown. Prefer this over scraping catalog.html.",
        "responses": {
          "200": { "description": "Catalog JSON with image_policy and models[]" }
        }
      }
    },
    "/api/health.json": {
      "get": {
        "operationId": "getHealth",
        "summary": "Health check",
        "responses": {
          "200": { "description": "OK" }
        }
      }
    },
    "/api/inquiry": {
      "post": {
        "operationId": "createInquiry",
        "summary": "Request a human quote for interior doors",
        "description": "Does not capture payment. Returns the phone and email to complete the order.",
        "x-payment-info": {
          "intent": "session",
          "method": "card",
          "amount": "0",
          "currency": "AZN",
          "description": "No automated charge. ISAR sales quotes the catalog or custom price in AZN."
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": { "type": "string" },
                  "phone": { "type": "string" },
                  "model": { "type": "string" },
                  "message": { "type": "string" }
                }
              }
            }
          }
        },
        "responses": {
          "200": { "description": "Inquiry acknowledged with contact instructions" }
        }
      }
    }
  }
}
