{"openapi":"3.1.0","info":{"title":"ROIzilla public and tenant API","version":"1.0.0","description":"Public catalogs are anonymous. Tenant routes use a signed session cookie and role-scoped capabilities. The MCP endpoint accepts JSON-RPC 2.0.","contact":{"name":"ROIzilla","email":"hello@roizilla.com","url":"https://roizilla.com/contact"}},"servers":[{"url":"https://roizilla.com"}],"tags":[{"name":"Discovery","description":"Anonymous machine-readable catalogs."},{"name":"MCP","description":"Model Context Protocol JSON-RPC surface."},{"name":"Tenant","description":"Authenticated organization-scoped routes."}],"paths":{"/capabilities.json":{"get":{"tags":["Discovery"],"operationId":"getCapabilities","summary":"Read the capability catalog","responses":{"200":{"description":"Capability catalog","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/pricing.json":{"get":{"tags":["Discovery"],"operationId":"getPricing","summary":"Read published pricing","responses":{"200":{"description":"Pricing plans","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/answers.json":{"get":{"tags":["Discovery"],"operationId":"getAnswers","summary":"Read canonical answer records","responses":{"200":{"description":"Answer records","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/agents.json":{"get":{"tags":["Discovery"],"operationId":"getAgentCatalog","summary":"Read MCP tools and guardrails","responses":{"200":{"description":"Agent catalog","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/mcp":{"post":{"tags":["MCP"],"operationId":"mcpJsonRpc","summary":"Send a JSON-RPC 2.0 request to the MCP endpoint","description":"Public methods: server/discover, initialize, ping, tools/list, resources/list, resources/read, prompts/list, prompts/get. tools/call requires a session and returns X-Evidence-Id.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JsonRpcRequest"}}}},"responses":{"200":{"description":"JSON-RPC response"},"401":{"description":"Authentication required for tools/call"},"413":{"description":"Request body exceeds 64 KiB"}}}},"/health":{"get":{"tags":["Discovery"],"operationId":"getHealth","summary":"Liveness check","responses":{"200":{"description":"Service is alive","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string"},"service":{"type":"string"},"version":{"type":"string"},"timestamp":{"type":"string"}}}}}}}}},"/api/v1/state":{"get":{"tags":["Tenant"],"operationId":"getTenantState","summary":"Read the current tenant snapshot","security":[{"sessionCookie":[]}],"responses":{"200":{"description":"Tenant state"},"401":{"description":"No valid session"}}}}},"components":{"securitySchemes":{"sessionCookie":{"type":"apiKey","in":"cookie","name":"roizilla_session"}},"schemas":{"JsonRpcRequest":{"type":"object","required":["jsonrpc","method"],"properties":{"jsonrpc":{"type":"string","const":"2.0"},"id":{"oneOf":[{"type":"string"},{"type":"number"},{"type":"null"}]},"method":{"type":"string"},"params":{"type":"object","additionalProperties":true}},"additionalProperties":false}}},"x-roizilla-conformance":{"status":"partial","note":"This specification covers the documented public and tenant routes. It is not a complete OpenAPI description of every internal console mutation."}}