{
  "openapi": "3.1.0",
  "info": {
    "title": "Klizo Solutions API",
    "version": "1.0.0",
    "description": "Official programmatic API for Klizo Solutions (https://klizos.com). Enables AI agents, developers, and automated tools to query company information, explore blog articles, check service health, and submit client inquiries or project consultations.",
    "contact": {
      "name": "Klizo Solutions Support",
      "url": "https://klizos.com/contact-us",
      "email": "info@klizos.com"
    }
  },
  "servers": [
    {
      "url": "https://klizos.com",
      "description": "Production server"
    }
  ],
  "paths": {
    "/api/v1/health": {
      "get": {
        "operationId": "getApiHealth",
        "summary": "Check API Health and Availability",
        "description": "Returns the current operational status, API version, and timestamp.",
        "responses": {
          "200": {
            "description": "API is operational",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HealthResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/info": {
      "get": {
        "operationId": "getCompanyInfo",
        "summary": "Get Klizo Solutions Company Information & Services",
        "description": "Returns verified company profile, services catalog, headquarters address, contact channels, and developer resource links.",
        "responses": {
          "200": {
            "description": "Company profile and services list",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompanyInfoResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/blog": {
      "get": {
        "operationId": "listBlogPosts",
        "summary": "List and Search Blog Articles",
        "description": "Retrieves published technical articles, guides, and thought leadership from Klizo Solutions with pagination and optional search query or category filter.",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "required": false,
            "description": "Page number (1-based index)",
            "schema": {
              "type": "integer",
              "default": 1,
              "minimum": 1
            }
          },
          {
            "name": "perPage",
            "in": "query",
            "required": false,
            "description": "Number of articles per page (max 50)",
            "schema": {
              "type": "integer",
              "default": 6,
              "minimum": 1,
              "maximum": 50
            }
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "description": "Search keyword to filter blog articles by title or content",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "categoryId",
            "in": "query",
            "required": false,
            "description": "Category ID filter or 'all'",
            "schema": {
              "type": "string",
              "default": "all"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Paginated list of blog articles",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BlogListResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid query parameter supplied",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Upstream service error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/blog/{slug}": {
      "get": {
        "operationId": "getBlogPostBySlug",
        "summary": "Get Single Blog Article by Slug",
        "description": "Returns full article content, author details, reading time, and metadata for a specific article slug.",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "description": "Unique URL slug of the blog article",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Article details",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BlogPostResponse"
                }
              }
            }
          },
          "404": {
            "description": "Article not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/contact-form": {
      "post": {
        "operationId": "submitContactInquiry",
        "summary": "Submit a Project Inquiry or Consultation Request",
        "description": "Submits a client inquiry or consultation request to Klizo Solutions for custom AI development, web development, SaaS building, or dedicated hiring.",
        "requestBody": {
          "required": true,
          "description": "Contact form payload with client details and project requirement",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ContactFormInput"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Inquiry submitted successfully",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContactFormSuccessResponse"
                }
              }
            }
          },
          "400": {
            "description": "Validation error or invalid payload",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "HealthResponse": {
        "type": "object",
        "required": ["status", "service", "version", "timestamp"],
        "properties": {
          "status": {
            "type": "string",
            "example": "ok"
          },
          "service": {
            "type": "string",
            "example": "Klizo Solutions API"
          },
          "version": {
            "type": "string",
            "example": "1.0.0"
          },
          "timestamp": {
            "type": "string",
            "format": "date-time",
            "example": "2026-08-24T12:00:00.000Z"
          },
          "documentation": {
            "type": "string",
            "format": "uri",
            "example": "https://klizos.com/developers"
          },
          "openapi": {
            "type": "string",
            "format": "uri",
            "example": "https://klizos.com/openapi.json"
          }
        }
      },
      "CompanyInfoResponse": {
        "type": "object",
        "required": ["name", "website", "founded", "headquarters", "contact", "services", "developerResources"],
        "properties": {
          "name": {
            "type": "string",
            "example": "Klizo Solutions"
          },
          "legalName": {
            "type": "string",
            "example": "Klizo Solutions Private Limited"
          },
          "tagline": {
            "type": "string",
            "example": "Innovation Redefined | AI, Web & Product Development"
          },
          "website": {
            "type": "string",
            "format": "uri",
            "example": "https://klizos.com"
          },
          "founded": {
            "type": "string",
            "example": "2020"
          },
          "headquarters": {
            "type": "object",
            "properties": {
              "address": { "type": "string" },
              "city": { "type": "string" },
              "state": { "type": "string" },
              "postalCode": { "type": "string" },
              "country": { "type": "string" }
            }
          },
          "contact": {
            "type": "object",
            "properties": {
              "email": { "type": "string", "format": "email" },
              "phone": { "type": "string" },
              "contactUrl": { "type": "string", "format": "uri" }
            }
          },
          "services": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": { "type": "string" },
                "name": { "type": "string" },
                "description": { "type": "string" },
                "url": { "type": "string", "format": "uri" }
              }
            }
          },
          "developerResources": {
            "type": "object",
            "properties": {
              "developerPortal": { "type": "string", "format": "uri" },
              "openapiJson": { "type": "string", "format": "uri" },
              "openapiYaml": { "type": "string", "format": "uri" },
              "llmsTxt": { "type": "string", "format": "uri" },
              "llmsFullTxt": { "type": "string", "format": "uri" },
              "agentInstructions": { "type": "string", "format": "uri" }
            }
          }
        }
      },
      "WordPressPost": {
        "type": "object",
        "required": ["id", "slug", "title", "excerpt", "content", "date", "category", "categoryId", "image", "author", "readingTime"],
        "properties": {
          "id": {
            "type": "integer",
            "example": 101
          },
          "slug": {
            "type": "string",
            "example": "custom-software-in-2026"
          },
          "title": {
            "type": "string",
            "example": "Custom Software Development Trends in 2026"
          },
          "excerpt": {
            "type": "string",
            "example": "Discover the latest trends in custom software engineering..."
          },
          "content": {
            "type": "string",
            "example": "<p>Article HTML content...</p>"
          },
          "date": {
            "type": "string",
            "example": "24 Aug 2026"
          },
          "category": {
            "type": "string",
            "example": "Technology"
          },
          "categoryId": {
            "type": "integer",
            "example": 12
          },
          "image": {
            "type": "string",
            "format": "uri",
            "example": "https://careers.klizos.com/wp-content/uploads/sample.jpg"
          },
          "author": {
            "type": "string",
            "example": "Klizo Team"
          },
          "readingTime": {
            "type": "string",
            "example": "4 min read"
          }
        }
      },
      "BlogListResponse": {
        "type": "object",
        "required": ["posts", "totalCount", "totalPages"],
        "properties": {
          "posts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WordPressPost"
            }
          },
          "totalCount": {
            "type": "integer",
            "example": 45
          },
          "totalPages": {
            "type": "integer",
            "example": 8
          }
        }
      },
      "BlogPostResponse": {
        "type": "object",
        "required": ["success", "post"],
        "properties": {
          "success": {
            "type": "boolean",
            "example": true
          },
          "post": {
            "$ref": "#/components/schemas/WordPressPost"
          }
        }
      },
      "ContactFormInput": {
        "type": "object",
        "required": ["name", "email", "phone", "requirement", "message"],
        "properties": {
          "name": {
            "type": "string",
            "minLength": 2,
            "maxLength": 50,
            "description": "Full name of the contact person",
            "example": "Alex Morgan"
          },
          "email": {
            "type": "string",
            "format": "email",
            "description": "Work or personal email address",
            "example": "alex@example.com"
          },
          "phone": {
            "type": "string",
            "description": "Phone number with country code",
            "example": "+1 415 555 2671"
          },
          "requirement": {
            "type": "string",
            "enum": ["web", "app", "design", "ai", "other"],
            "description": "Project category or requirement type",
            "example": "ai"
          },
          "message": {
            "type": "string",
            "minLength": 10,
            "description": "Detailed project description, requirements, or inquiry message",
            "example": "We are looking for an experienced engineering team to build a multi-agent workflow platform."
          },
          "is_contactus_form": {
            "type": "boolean",
            "default": true,
            "description": "Flag indicating standard contact form submission"
          }
        }
      },
      "ContactFormSuccessResponse": {
        "type": "object",
        "required": ["success", "message", "id"],
        "properties": {
          "success": {
            "type": "boolean",
            "example": true
          },
          "message": {
            "type": "string",
            "example": "Contact form submitted successfully"
          },
          "id": {
            "type": "string",
            "example": "65e2b6a8f1a2b3c4d5e6f7a8"
          }
        }
      },
      "ErrorResponse": {
        "type": "object",
        "required": ["success", "error"],
        "properties": {
          "success": {
            "type": "boolean",
            "example": false
          },
          "error": {
            "type": "object",
            "required": ["code", "message", "status", "timestamp", "documentation_url"],
            "properties": {
              "code": {
                "type": "string",
                "example": "VALIDATION_FAILED"
              },
              "message": {
                "type": "string",
                "example": "Validation failed for contact form input."
              },
              "status": {
                "type": "integer",
                "example": 400
              },
              "resolution": {
                "type": "string",
                "example": "Correct the invalid fields listed in errors array."
              },
              "hint": {
                "type": "string",
                "example": "Required: name (2-50 characters), valid email, phone number with country code, requirement, and message (minimum 10 characters)."
              },
              "timestamp": {
                "type": "string",
                "format": "date-time",
                "example": "2026-08-24T12:00:00.000Z"
              },
              "documentation_url": {
                "type": "string",
                "format": "uri",
                "example": "https://klizos.com/developers"
              },
              "errors": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "field": { "type": "string" },
                    "message": { "type": "string" }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}
