{
  "openapi": "3.1.0",
  "info": {
    "title": "Corazor Technology Agent API",
    "version": "1.0.0",
    "summary": "Look up Corazor Technology and send a project inquiry on a user's behalf.",
    "description": "Corazor Technology is a global AI product engineering and technical partner for startups and enterprises — a friendly, highly collaborative senior team that takes AI, SaaS, web, and mobile products from idea to production with evaluation, guardrails, security, and cost control built in. Headquartered in Gurugram, India; working with clients across the US, UK, Europe, the Middle East, APAC, and India. Read endpoints are public and cacheable. Only POST an inquiry with the user's consent and real contact details.",
    "contact": {
      "name": "Corazor Technology",
      "email": "tushar@corazor.com",
      "url": "https://www.corazor.com"
    }
  },
  "servers": [
    {
      "url": "https://www.corazor.com"
    }
  ],
  "paths": {
    "/api/agent/company": {
      "get": {
        "operationId": "getCompanyProfile",
        "summary": "Company facts, working style, regions served, contact and booking details.",
        "responses": {
          "200": {
            "description": "Company profile",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean"
                    },
                    "data": {
                      "type": "object"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/agent/services": {
      "get": {
        "operationId": "listServices",
        "summary": "Service catalog and engagement models. Pass ?brief= to get matched services for a project.",
        "parameters": [
          {
            "name": "brief",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Free-text project brief to match against services."
          },
          {
            "name": "budget",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "timeline",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Services or fit result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean"
                    },
                    "data": {
                      "type": "object"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/agent/case-studies": {
      "get": {
        "operationId": "listCaseStudies",
        "summary": "Shipped client projects with challenge, solution, and outcomes.",
        "responses": {
          "200": {
            "description": "Case studies",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean"
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/agent/inquiry": {
      "post": {
        "operationId": "submitInquiry",
        "summary": "Send a project inquiry to Corazor. Replies within one business day.",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Prevents duplicate inquiries on retry."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "name",
                  "email",
                  "message"
                ],
                "properties": {
                  "name": {
                    "type": "string",
                    "maxLength": 120,
                    "description": "Full name of the person the inquiry is for."
                  },
                  "email": {
                    "type": "string",
                    "format": "email",
                    "maxLength": 200,
                    "description": "Email Corazor should reply to."
                  },
                  "message": {
                    "type": "string",
                    "maxLength": 5000,
                    "description": "What they are building, who it is for, current stage, and goals."
                  },
                  "company": {
                    "type": "string",
                    "maxLength": 160
                  },
                  "website": {
                    "type": "string",
                    "maxLength": 300
                  },
                  "phone": {
                    "type": "string",
                    "maxLength": 40
                  },
                  "country": {
                    "type": "string",
                    "maxLength": 80,
                    "description": "Country or time zone."
                  },
                  "service": {
                    "type": "string",
                    "enum": [
                      "AI & Machine Learning",
                      "AI agents / LLM integration",
                      "SaaS platform",
                      "Web Development",
                      "Mobile App (iOS / Android)",
                      "UI/UX Design",
                      "Technical partner / fractional CTO",
                      "Code, architecture or security audit",
                      "SOC 2 / ISO 27001 readiness",
                      "Blockchain / DApps",
                      "Discovery / Consulting",
                      "Other"
                    ]
                  },
                  "budget": {
                    "type": "string",
                    "enum": [
                      "Under $10k",
                      "$10k–$25k",
                      "$25k–$50k",
                      "$50k–$100k",
                      "$100k+",
                      "Not sure yet"
                    ]
                  },
                  "timeline": {
                    "type": "string",
                    "enum": [
                      "ASAP (within 1 month)",
                      "1–3 months",
                      "3–6 months",
                      "6+ months",
                      "Exploring"
                    ]
                  },
                  "on_behalf_of": {
                    "type": "string",
                    "maxLength": 120,
                    "description": "Name of the AI assistant submitting on the user's behalf, if any."
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Inquiry received; includes reference ID and booking link."
          },
          "400": {
            "description": "Validation error with a readable message."
          },
          "429": {
            "description": "Rate limited."
          },
          "503": {
            "description": "Intake unavailable; response includes email and booking fallbacks."
          }
        }
      }
    }
  }
}
