{"openapi":"3.1.0","info":{"title":"ProofForge Agent API","version":"1.0.0","description":"Free, bounded passive checks of public website surfaces. Only scan apps you own or are explicitly authorized to test. The scanner does not log in, write data, attempt authentication bypasses, or retain database row contents. Results are partial and are not a penetration test or proof that every access-control rule is safe."},"servers":[{"url":"/","description":"ProofForge origin"}],"paths":{"/api/v1/scan":{"post":{"operationId":"startAuthorizedScan","summary":"Start an authorized passive scan","description":"Explicit ownership or authorization confirmation is required. The scan uses the same public-target validation, DNS/IP SSRF protections, per-IP and per-target limits, one-in-flight limit, and bounded request/byte/time budget as the web scanner. Only the first finding is included in the free summary.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["url","owner_confirmed"],"properties":{"url":{"type":"string","minLength":3,"maxLength":2048,"description":"Public website URL you own or are authorized to test."},"owner_confirmed":{"type":"boolean","const":true,"description":"Confirm ownership or explicit authorization before starting."}}}}}},"responses":{"202":{"description":"The scan was accepted and is running asynchronously. Keep scan_id private.","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["scan_id"],"properties":{"scan_id":{"type":"string","pattern":"^[A-Za-z0-9_-]{43}$","description":"Private bearer token; do not put it in public logs or commits."}}}}}},"400":{"description":"Consent is missing or the request is invalid."},"403":{"description":"Browser origin is not allowed."},"429":{"description":"Per-IP, per-target, or in-flight scan limit reached. A Retry-After header is included."},"503":{"description":"The service is temporarily unavailable."}}}},"/api/v1/scan/{id}":{"get":{"operationId":"getAuthorizedScanSummary","summary":"Get the minimal scan summary","description":"Provide the same scan_id in the Authorization bearer header. The response includes status, score, grade, counts, at most the first finding, and bounded coverage notes. It omits the target URL, email, raw evidence, response bodies, fixes, report token, and signature.","security":[{"scanIdBearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{43}$"}}],"responses":{"200":{"description":"Minimal scan status and summary.","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["status","grade","score","builder","counts","findings","coverage"],"properties":{"status":{"type":"string","enum":["queued","running","done","error"]},"grade":{"type":["string","null"]},"score":{"type":["integer","null"],"minimum":0,"maximum":100},"builder":{"type":"string"},"counts":{"type":"object","additionalProperties":false,"required":["critical","high","medium","low","info","inconclusive"],"properties":{"critical":{"type":"integer","minimum":0},"high":{"type":"integer","minimum":0},"medium":{"type":"integer","minimum":0},"low":{"type":"integer","minimum":0},"info":{"type":"integer","minimum":0},"inconclusive":{"type":"integer","minimum":0}}},"findings":{"type":"array","maxItems":1,"items":{"type":"object","additionalProperties":false,"required":["severity","title","impact"],"properties":{"severity":{"type":"string"},"title":{"type":"string","maxLength":180},"impact":{"type":"string","maxLength":500}}}},"coverage":{"type":"array","maxItems":9,"items":{"type":"object","additionalProperties":false,"required":["check","state","reason"],"properties":{"check":{"type":"string","maxLength":40},"state":{"type":"string","enum":["tested","not_tested","inconclusive"]},"reason":{"type":"string","maxLength":240}}}}}}}}},"401":{"description":"A matching private scan ID bearer token is required."},"404":{"description":"No scan exists for this ID."}}}},"/mcp":{"post":{"operationId":"streamableHttpMcp","summary":"Use the free MCP tools","description":"Stateless Streamable HTTP JSON-RPC endpoint. Supports initialize, ping, tools/list, and tools/call for scan_url, get_report, and explain_finding. Every scan requires explicit ownership or authorization consent. Tool descriptions include scan scope and limitations.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["jsonrpc","method"],"properties":{"jsonrpc":{"const":"2.0"},"id":{"type":["string","integer"]},"method":{"type":"string"},"params":{"type":"object"}}}}}},"responses":{"200":{"description":"JSON-RPC response using application/json."},"202":{"description":"Notification accepted without a response body."},"400":{"description":"Malformed JSON-RPC request."},"403":{"description":"Browser origin is not allowed."}}}}},"components":{"securitySchemes":{"scanIdBearer":{"type":"http","scheme":"bearer","description":"Use the private scan_id returned by POST /api/v1/scan. The GET route also requires the same value in its path and Authorization header."}}}}