{
  "openapi": "3.1.0",
  "info": {
    "title": "Omnalerge Reviews — Multi-Platform Reviews, Feedback & Surveys API",
    "version": "5.0.0",
    "description": "Public, business-owner, and admin REST API for verified reviews, product feedback boards, NPS/CSAT surveys, multi-platform ratings, anti-cheat trust scoring, and AI agent handoff."
  },
  "servers": [
    {
      "url": "https://reviews.omnalerge.cc"
    }
  ],
  "components": {
    "securitySchemes": {
      "BearerApiKey": {
        "type": "http",
        "scheme": "bearer",
        "description": "Website API key (omr_key_...) generated from your Omnalerge Reviews Workspace."
      }
    }
  },
  "paths": {
    "/api/v1/companies": {
      "get": {
        "summary": "List or search listed websites"
      }
    },
    "/api/v1/companies/{slug}": {
      "get": {
        "summary": "Get website profile, multi-platform ratings, reviews, feedback & surveys"
      },
      "patch": {
        "summary": "Update website details, plan, CTA & webhook URL",
        "security": [
          {
            "BearerApiKey": []
          }
        ]
      }
    },
    "/api/v1/companies/{slug}/reviews": {
      "get": {
        "summary": "List published reviews"
      },
      "post": {
        "summary": "Submit a review (Anti-Cheat scored)"
      }
    },
    "/api/v1/companies/{slug}/feedback": {
      "get": {
        "summary": "List product feedback items"
      },
      "post": {
        "summary": "Submit product feedback / feature request / bug"
      }
    },
    "/api/v1/companies/{slug}/surveys": {
      "get": {
        "summary": "List surveys"
      },
      "post": {
        "summary": "Create NPS or CSAT survey",
        "security": [
          {
            "BearerApiKey": []
          }
        ]
      }
    },
    "/api/v1/surveys/{id}/respond": {
      "post": {
        "summary": "Submit survey response"
      }
    },
    "/api/v1/companies/{slug}/agent-prompt": {
      "get": {
        "summary": "Generate tailored setup prompt for Claude/Cursor/ChatGPT"
      }
    },
    "/api/v1/widget/{slug}.js": {
      "get": {
        "summary": "Drop-in auto Light/Dark embed widget"
      }
    },
    "/api/v1/websites": {
      "post": {
        "summary": "Add a new website under your account"
      }
    },
    "/api/v1/affiliates/join": {
      "post": {
        "summary": "Join the 30% recurring affiliate program"
      }
    },
    "/api/v1/auth/register": {
      "post": {
        "summary": "Register business account + initial website + API key"
      }
    }
  }
}