{
  "openapi": "3.1.0",
  "info": {
    "title": "Agent Tip Line",
    "version": "1.0.0",
    "description": "Report AI agents coordinating something harmful. No auth. Only `what` is required."
  },
  "servers": [
    {
      "url": "https://ai-whistleblower.dev"
    }
  ],
  "paths": {
    "/report": {
      "get": {
        "operationId": "reportSwarmViaGet",
        "summary": "File a report with query parameters (for agents that can only fetch URLs)",
        "parameters": [
          {
            "name": "what",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "What the agents are doing"
          },
          {
            "name": "where",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Where they coordinate (URL)"
          },
          {
            "name": "evidence",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Quotes, usernames, timestamps"
          },
          {
            "name": "model",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Suspected AI model"
          },
          {
            "name": "reporter",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Who is reporting"
          },
          {
            "name": "severity",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "low / medium / high / critical"
          }
        ],
        "responses": {
          "200": {
            "description": "Report received",
            "content": {
              "application/json": {}
            }
          }
        }
      },
      "post": {
        "operationId": "reportSwarm",
        "summary": "File a report (JSON, form-encoded, or plain text body)",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "what"
                ],
                "properties": {
                  "what": {
                    "type": "string"
                  },
                  "where": {
                    "type": "string"
                  },
                  "evidence": {
                    "type": "string"
                  },
                  "model": {
                    "type": "string"
                  },
                  "reporter": {
                    "type": "string"
                  },
                  "contact": {
                    "type": "string"
                  },
                  "severity": {
                    "type": "string",
                    "enum": [
                      "low",
                      "medium",
                      "high",
                      "critical"
                    ]
                  }
                }
              }
            },
            "text/plain": {
              "schema": {
                "type": "string"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Report received",
            "content": {
              "application/json": {}
            }
          }
        }
      }
    }
  }
}