{
  "openapi": "3.1.0",
  "info": {
    "title": "api.qa",
    "version": "0.1.0",
    "description": "External third-party verifier for agent-first APIs."
  },
  "servers": [
    {
      "url": "https://api.qa"
    }
  ],
  "paths": {
    "/health": {
      "get": {
        "operationId": "health",
        "summary": "Keyless liveness probe",
        "responses": {
          "200": {
            "description": "alive",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "ok",
                    "verifier",
                    "version"
                  ],
                  "properties": {
                    "ok": {
                      "type": "boolean",
                      "const": true
                    },
                    "verifier": {
                      "type": "string",
                      "const": "api.qa"
                    },
                    "version": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/openapi.json": {
      "get": {
        "operationId": "openapi",
        "summary": "This contract",
        "responses": {
          "200": {
            "description": "the OpenAPI document",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "openapi",
                    "paths"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/{domain}": {
      "get": {
        "operationId": "report",
        "summary": "Public grade report for a target domain (content-negotiated)",
        "parameters": [
          {
            "name": "domain",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "markdown | html | json report"
          }
        }
      }
    },
    "/verify": {
      "post": {
        "operationId": "verify",
        "summary": "Run a verification (optionally against a pinned spec)",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "target"
                ],
                "properties": {
                  "target": {
                    "type": "string"
                  },
                  "spec": {
                    "type": "object"
                  },
                  "expectedDigest": {
                    "type": "string"
                  },
                  "seed": {
                    "type": "integer"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "VerificationReport | PinnedVerificationReport"
          }
        }
      }
    }
  }
}