{"openapi":"3.1.0","info":{"title":"PerchBot Reports API","version":"1.0.0","description":"Read-only access to the Perch AI Discord help-forum reports, the bot's analysis and the sandbox reproductions (screenshots and videos). Keys: pbk_..., created by the PerchBot operator."},"servers":[{"url":"https://api.perchaibot.com"}],"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","description":"Authorization: Bearer pbk_... (or X-API-Key)"}}},"security":[{"bearer":[]}],"paths":{"/api/v1/reports":{"get":{"summary":"List reports","parameters":[{"name":"status","in":"query","required":false,"description":"open, closed or a status (open, needs_info, acknowledged, fixed, solved, shipped, not_planned, moved)","schema":{"type":"string"}},{"name":"category","in":"query","required":false,"description":"bug, feature_request, question, billing, ...","schema":{"type":"string"}},{"name":"area","in":"query","required":false,"description":"cli, desktop, web, cloud, ...","schema":{"type":"string"}},{"name":"severity","in":"query","required":false,"description":"low, medium, high, critical","schema":{"type":"string"}},{"name":"q","in":"query","required":false,"description":"words to search","schema":{"type":"string"}},{"name":"reproduced","in":"query","required":false,"description":"true: only reports the sandbox reproduced","schema":{"type":"string"}},{"name":"since","in":"query","required":false,"description":"ISO date or epoch ms","schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"1 to 200 (default 50)","schema":{"type":"integer"}},{"name":"offset","in":"query","required":false,"description":"for paging","schema":{"type":"integer"}}],"security":[{"bearer":[]}],"responses":{"200":{"description":"OK"},"401":{"description":"Missing or wrong access key"},"404":{"description":"Not found"},"429":{"description":"Too many requests"}}}},"/api/v1/reports/{id}":{"get":{"summary":"One report in full: post, analysis, reproduction, duplicates, thread (?format=md for Markdown)","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"format","in":"query","required":false,"description":"md for Markdown","schema":{"type":"string"}}],"security":[{"bearer":[]}],"responses":{"200":{"description":"OK"},"401":{"description":"Missing or wrong access key"},"404":{"description":"Not found"},"429":{"description":"Too many requests"}}}},"/api/v1/reports/{id}/images":{"get":{"summary":"The member's screenshots and the sandbox's screenshots and videos","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"security":[{"bearer":[]}],"responses":{"200":{"description":"OK"},"401":{"description":"Missing or wrong access key"},"404":{"description":"Not found"},"429":{"description":"Too many requests"}}}},"/api/v1/reports/{id}/images/{n}":{"get":{"summary":"One file (bytes)","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"n","in":"path","required":true,"schema":{"type":"integer"}}],"security":[{"bearer":[]}],"responses":{"200":{"description":"OK"},"401":{"description":"Missing or wrong access key"},"404":{"description":"Not found"},"429":{"description":"Too many requests"}}}},"/api/v1/known-issues":{"get":{"summary":"Open bugs the bot reproduced or several people have","parameters":[],"security":[{"bearer":[]}],"responses":{"200":{"description":"OK"},"401":{"description":"Missing or wrong access key"},"404":{"description":"Not found"},"429":{"description":"Too many requests"}}}},"/api/v1/digest":{"get":{"summary":"Markdown summary of a period","parameters":[{"name":"days","in":"query","required":false,"description":"1 to 90 (default 7)","schema":{"type":"integer"}}],"security":[{"bearer":[]}],"responses":{"200":{"description":"OK"},"401":{"description":"Missing or wrong access key"},"404":{"description":"Not found"},"429":{"description":"Too many requests"}}}},"/api/v1/releases/{version}":{"get":{"summary":"What changed in a CLI version","parameters":[{"name":"version","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"bearer":[]}],"responses":{"200":{"description":"OK"},"401":{"description":"Missing or wrong access key"},"404":{"description":"Not found"},"429":{"description":"Too many requests"}}}},"/api/v1/status":{"get":{"summary":"Perch's status checks and the bot's health","parameters":[],"security":[{"bearer":[]}],"responses":{"200":{"description":"OK"},"401":{"description":"Missing or wrong access key"},"404":{"description":"Not found"},"429":{"description":"Too many requests"}}}},"/mcp":{"post":{"summary":"MCP (Streamable HTTP, JSON responses): tools list_reports, get_report, get_report_image, known_issues, digest, release_notes, perch_status","security":[{"bearer":[]}],"responses":{"200":{"description":"JSON-RPC response"}}}}}}