{"openapi":"3.1.0","info":{"title":"PROJECT486 Quantum Shield API","version":"0.1.0","description":"Free, no-key API for post-quantum readiness checks of public websites. Read-only TLS handshakes against ports 443/8443 of public hosts only; private and reserved addresses are refused. Limits per client: 6 scans/minute, 40/hour; identical targets are served from a 60-second cache. For internal hosts, SSH, source code and remediation use the CLI (local-first).","license":{"name":"Apache-2.0"}},"servers":[{"url":"https://project486.org"}],"paths":{"/api/shield/v1/scan/tls":{"post":{"summary":"Scan a public website's TLS configuration for post-quantum readiness","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["target"],"properties":{"target":{"type":"string","example":"example.com","description":"host, host:port (443/8443) or https URL"},"shelfLife":{"type":"number","minimum":0,"maximum":100,"default":10,"description":"years the data must remain confidential (drives harvest-now-decrypt-later severity)"},"fresh":{"type":"boolean","default":false,"description":"bypass the 60-second result cache (e.g. to verify a change)"},"policy":{"enum":["nist","cnsa2"],"default":"nist"}}}}}},"responses":{"200":{"description":"Report","content":{"application/json":{"schema":{"type":"object","properties":{"subject":{"type":"string"},"grade":{"type":"object","properties":{"score":{"type":"integer"},"grade":{"enum":["A","B","C","D","F"]},"formula":{"type":"string"}}},"pq":{"type":"object","properties":{"status":{"enum":["hybrid-negotiated","hybrid-supported-not-preferred","classical-only","no-tls13","unknown"]},"group":{"type":["string","null"]},"detail":{"type":"string"}}},"findings":{"type":"array","items":{"type":"object","required":["id","title","severity","category","quantum","plain","recommendation","fixability"],"properties":{"id":{"type":"string","example":"QS-TLS-KEX-CLASSICAL"},"title":{"type":"string"},"severity":{"enum":["critical","high","medium","low","info"]},"category":{"type":"string"},"algorithm":{"type":"string"},"quantum":{"enum":["quantum-vulnerable","quantum-weakened","quantum-resistant","hybrid","classically-broken","not-applicable"]},"hndl":{"type":"boolean","description":"harvest-now-decrypt-later exposure"},"plain":{"type":"string"},"recommendation":{"type":"string"},"fixability":{"enum":["auto","assisted","manual"]},"location":{"type":"object"},"evidence":{"type":"string"},"references":{"type":"array","items":{"type":"string"}}}}},"assets":{"type":"array","items":{"type":"object"}},"tls":{"type":"object","description":"raw observations (versions, certificates, probe outcomes)"}}}}}},"400":{"description":"Invalid target or port"},"403":{"description":"Target resolves to a private/reserved address"},"429":{"description":"Rate limited (Retry-After header)"},"503":{"description":"Scanner busy"}}}},"/api/shield/v1/osv":{"post":{"summary":"Look up dependency vulnerabilities on OSV.dev (package names and versions only)","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"queries":{"type":"array","maxItems":300,"items":{"type":"object","required":["ecosystem","name","version"],"properties":{"ecosystem":{"type":"string","example":"npm"},"name":{"type":"string"},"version":{"type":"string"}}}}}}}}},"responses":{"200":{"description":"{ findings: Finding[] }"},"429":{"description":"Rate limited"},"502":{"description":"OSV.dev unavailable"}}}}}}