{"openapi":"3.1.0","info":{"title":"Anaphero API","version":"1.0.0","description":"Deterministic numeral verification for any LLM. Zero tokens in the verification loop. Signed SHA-256 + HMAC receipts.","contact":{"name":"Anaphero","email":"support@anaphero.dev","url":"https://anaphero.dev"},"license":{"name":"Commercial","url":"https://anaphero.dev/legal/terms"}},"servers":[{"url":"https://api.anaphero.dev","description":"Production"}],"security":[{"ApiKeyAuth":[]}],"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"X-Anaphero-Key"}},"schemas":{"VerificationReceipt":{"type":"object","required":["receipt_id","verdict","checked_count","grounded_count","ungrounded_tokens","receipt_sha256","hmac_signature"],"properties":{"receipt_id":{"type":"string"},"verdict":{"type":"string","enum":["APPROVED","REJECTED"]},"checked_count":{"type":"integer"},"grounded_count":{"type":"integer"},"ungrounded_tokens":{"type":"array","items":{"type":"object"}},"contradictions":{"type":"array","items":{"type":"object"}},"latency_ms":{"type":"number"},"input_sha256":{"type":"string"},"evidence_sha256":{"type":"string"},"receipt_sha256":{"type":"string"},"hmac_signature":{"type":"string"},"receipt_url":{"type":"string","format":"uri"}}},"Error":{"type":"object","properties":{"detail":{"type":"string"}}}}},"paths":{"/v1/chat/completions":{"post":{"summary":"OpenAI-compatible BYOK verification bridge","description":"Forward a chat completion to your upstream provider, verify the reply against tool, system and prompt context, and attach anaphero_verification.","parameters":[{"name":"X-Anaphero-Key","in":"header","schema":{"type":"string"}},{"name":"X-Upstream-Api-Key","in":"header","schema":{"type":"string"}},{"name":"X-Upstream-Base-Url","in":"header","schema":{"type":"string"}},{"name":"X-Anaphero-Mode","in":"header","schema":{"type":"string","enum":["audit","strict","warn"]}}],"responses":{"200":{"description":"Completion plus anaphero_verification"},"422":{"description":"Strict mode blocked a rejected response"}}}},"/v1/verify":{"post":{"summary":"Verify a document against evidence or itself","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["document"],"properties":{"document":{"type":"string"},"evidence":{},"mode":{"type":"string","enum":["audit","strict","self_consistency"]},"rel_tol":{"type":"number","default":0.005}}}}}},"responses":{"200":{"description":"VerificationReceipt","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerificationReceipt"}}}},"401":{"description":"Missing API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/verify/file":{"post":{"summary":"Verify an uploaded PDF or text file","parameters":[{"name":"filename","in":"query","schema":{"type":"string"}},{"name":"evidence","in":"query","schema":{"type":"string"}}],"requestBody":{"content":{"application/octet-stream":{"schema":{"type":"string","format":"binary"}}}},"responses":{"200":{"description":"VerificationReceipt"}}}},"/v1/verify/public-demo":{"post":{"summary":"Unauthenticated, rate-limited playground","security":[],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"document":{"type":"string"},"evidence":{},"example":{"type":"string","enum":["financial-report","arxiv-paper","agent-tool-output"]}}}}}},"responses":{"200":{"description":"VerificationReceipt"},"429":{"description":"Rate limited"}}}},"/v1/receipts/{receipt_id}":{"get":{"summary":"Fetch a public receipt","security":[],"parameters":[{"name":"receipt_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Receipt JSON"},"404":{"description":"Not found"}}}},"/v1/badge/{receipt_id}.svg":{"get":{"summary":"Embeddable SVG verdict badge","security":[],"parameters":[{"name":"receipt_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"SVG badge","content":{"image/svg+xml":{"schema":{"type":"string"}}}}}}},"/v1/radar":{"get":{"summary":"Recent public Live Verification Feed cases","security":[],"responses":{"200":{"description":"Case list"}}}},"/mcp":{"post":{"summary":"Hosted MCP JSON-RPC endpoint","security":[],"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}}},"responses":{"200":{"description":"JSON-RPC response"},"202":{"description":"Notification accepted"}}}},"/v1/billing/paddle-webhook":{"post":{"summary":"Paddle Billing webhook","security":[],"parameters":[{"name":"Paddle-Signature","in":"header","schema":{"type":"string"}}],"responses":{"200":{"description":"Accepted"},"401":{"description":"Invalid signature"}}}},"/v1/admin/telemetry":{"get":{"summary":"CEO cockpit telemetry","parameters":[{"name":"X-Anaphero-Admin","in":"header","schema":{"type":"string"}}],"responses":{"200":{"description":"CPU, RAM, checks and error rate"},"403":{"description":"Forbidden"}}}}}}