{
  "openapi": "3.1.0",
  "info": {
    "title": "Wetware API",
    "version": "0.3.0",
    "description": "Compute fixed-point audience fatigue scores, spend forks, and halt flags over HTTPS REST and MCP 2024-11-05.",
    "contact": {
      "email": "hello@doverintel.com",
      "url": "https://wetware.doverintel.com"
    }
  },
  "servers": [
    {
      "url": "https://api.doverintel.com"
    }
  ],
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer"
      }
    }
  },
  "paths": {
    "/health": {
      "get": {
        "operationId": "health",
        "summary": "Return server status, model version, and active guard limits.",
        "responses": {
          "200": {
            "description": "Return server status, model version, and active guard limits."
          }
        }
      }
    },
    "/mcp": {
      "post": {
        "operationId": "mcp",
        "summary": "Run Streamable HTTP MCP 2024-11-05 tool calls.",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Run Streamable HTTP MCP 2024-11-05 tool calls."
          },
          "401": {
            "description": "Invalid Bearer key"
          },
          "429": {
            "description": "Rate or unit limit reached"
          }
        }
      }
    },
    "/v1/market/rank": {
      "post": {
        "operationId": "wetware_market_rank",
        "summary": "Rank creatives with cap-bounded allocations and optional shock prior.",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Rank creatives with cap-bounded allocations and optional shock prior."
          },
          "401": {
            "description": "Invalid Bearer key"
          },
          "429": {
            "description": "Rate or unit limit reached"
          }
        }
      }
    },
    "/v1/frontier/dpo": {
      "post": {
        "operationId": "wetware_frontier_dpo",
        "summary": "Return preference pairs (?format=jsonl) and fatigue scar state.",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Return preference pairs (?format=jsonl) and fatigue scar state."
          },
          "401": {
            "description": "Invalid Bearer key"
          },
          "429": {
            "description": "Rate or unit limit reached"
          }
        }
      }
    },
    "/v1/frontier/fork": {
      "post": {
        "operationId": "wetware_counterfactual_fork",
        "summary": "Run a paired counterfactual fork and return a SHA-256 digest (?format=html).",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Run a paired counterfactual fork and return a SHA-256 digest (?format=html)."
          },
          "401": {
            "description": "Invalid Bearer key"
          },
          "429": {
            "description": "Rate or unit limit reached"
          }
        }
      }
    },
    "/v1/compute/batch-sweep": {
      "post": {
        "operationId": "wetware_batch_sweep",
        "summary": "Run a parallel seed sweep and return mean odds and throughput.",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Run a parallel seed sweep and return mean odds and throughput."
          },
          "401": {
            "description": "Invalid Bearer key"
          },
          "429": {
            "description": "Rate or unit limit reached"
          }
        }
      }
    },
    "/v1/session/step": {
      "post": {
        "operationId": "v1_session_step",
        "summary": "Advance a stateful habituation session and return halt status.",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Advance a stateful habituation session and return halt status."
          },
          "401": {
            "description": "Invalid Bearer key"
          },
          "429": {
            "description": "Rate or unit limit reached"
          }
        }
      }
    },
    "/v1/calibrate/csv": {
      "post": {
        "operationId": "wetware_calibrate_csv",
        "summary": "Calibrate on holdout campaign CSV and return holdout error.",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Calibrate on holdout campaign CSV and return holdout error."
          },
          "401": {
            "description": "Invalid Bearer key"
          },
          "429": {
            "description": "Rate or unit limit reached"
          }
        }
      }
    },
    "/v1/intent/snipe": {
      "post": {
        "operationId": "wetware_snipe_intent",
        "summary": "Score public comments for purchase intent against engagement noise.",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Score public comments for purchase intent against engagement noise."
          },
          "401": {
            "description": "Invalid Bearer key"
          },
          "429": {
            "description": "Rate or unit limit reached"
          }
        }
      }
    },
    "/v1/llm/tools": {
      "get": {
        "operationId": "v1_llm_tools",
        "summary": "Return OpenAI and Gemini compatible function definitions.",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Return OpenAI and Gemini compatible function definitions."
          },
          "401": {
            "description": "Invalid Bearer key"
          },
          "429": {
            "description": "Rate or unit limit reached"
          }
        }
      }
    },
    "/v1/usage": {
      "get": {
        "operationId": "v1_usage",
        "summary": "Return tenant compute unit usage and remaining quota.",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Return tenant compute unit usage and remaining quota."
          },
          "401": {
            "description": "Invalid Bearer key"
          },
          "429": {
            "description": "Rate or unit limit reached"
          }
        }
      }
    }
  }
}
