{"openapi":"3.1.0","info":{"title":"Security Scanner API","description":"Scan deployed web apps for security vulnerabilities. Get AI-powered fix instructions.","version":"1.0.0","contact":{"name":"Security Scanner","url":"https://security.slederer.com"}},"servers":[{"url":"https://security.slederer.com"}],"paths":{"/v1/scan":{"post":{"operationId":"scanTarget","summary":"Start a security scan on a URL or IP","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"host":{"type":"string","description":"URL, hostname, or IP to scan"},"label":{"type":"string","description":"Optional label for this target"}},"required":["host"]}}}},"responses":{"200":{"description":"Scan started","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/v1/scan/{run_id}":{"get":{"operationId":"getScanStatus","summary":"Get scan status and findings","parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Scan status","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/v1/scan/{run_id}/fix":{"get":{"operationId":"getFixFile","summary":"Get AI-powered fix instructions (Markdown)","parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"target","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Fix markdown","content":{"text/markdown":{"schema":{"type":"string"}}}}}}},"/v1/targets":{"get":{"operationId":"listTargets","summary":"List configured targets","responses":{"200":{"description":"Target list"}}},"post":{"operationId":"addTarget","summary":"Add a new target","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"host":{"type":"string"},"label":{"type":"string"}},"required":["host"]}}}},"responses":{"200":{"description":"Target created"}}}},"/v1/runs":{"get":{"operationId":"listRuns","summary":"List scan history","responses":{"200":{"description":"Run list"}}}}},"components":{"securitySchemes":{"ApiKeyAuth":{"type":"http","scheme":"bearer","bearerFormat":"API Key","description":"API key in format sk-sec-..."}}},"security":[{"ApiKeyAuth":[]}]}