{"openapi":"3.1.0","info":{"title":"pfa public API","version":"1.0.0","description":"Public, unauthenticated endpoints for pfa (personal finance assistant). The full household API is auth-gated; its OpenAPI is at /api/operations/openapi.json (requires a session)."},"servers":[{"url":"https://pfa.tannerwj.com"}],"paths":{"/":{"get":{"operationId":"getLanding","summary":"Landing page","description":"Returns the pfa landing page as HTML, or Markdown when Accept: text/markdown is sent.","responses":{"200":{"description":"Landing page (HTML or Markdown)"}}}},"/llms.txt":{"get":{"operationId":"getLlmsTxt","summary":"Agent guide","description":"Plain-text guide for AI agents: what pfa is, when to use it, and how to call the API.","responses":{"200":{"description":"llms.txt content","content":{"text/plain":{"schema":{"type":"string"}}}}}}},"/sitemap.xml":{"get":{"operationId":"getSitemap","summary":"Sitemap","description":"XML sitemap of public pages.","responses":{"200":{"description":"Sitemap XML"}}}},"/openapi.json":{"get":{"operationId":"getPublicOpenApi","summary":"This document","description":"The public OpenAPI specification (this file).","responses":{"200":{"description":"OpenAPI JSON"}}}},"/healthz":{"get":{"operationId":"getHealth","summary":"Health check","description":"Returns service health status. No auth required.","responses":{"200":{"description":"Health status","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}}}}},"/api/public/entry":{"get":{"operationId":"getPublicEntry","summary":"Public entry points","description":"Returns which public entry points are available (demo, waitlist). No auth required.","responses":{"200":{"description":"Entry availability","content":{"application/json":{"schema":{"type":"object","properties":{"demo":{"type":"string","enum":["available","unavailable","unknown"]},"waitlistAvailable":{"type":"boolean"}}}}}}}}},"/demo":{"post":{"operationId":"startDemo","summary":"Start a demo session","description":"Creates a read-only demo session on the synthetic viewer household. Form POST; redirects to /app on success.","requestBody":{"required":false,"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{}}}}},"responses":{"303":{"description":"Redirect to /app with demo session cookie"}}}},"/waitlist":{"post":{"operationId":"joinWaitlist","summary":"Request access","description":"Submits an access request (email) to the waitlist. Turnstile-gated. Form POST; redirects to / with outcome.","requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","required":["email"],"properties":{"email":{"type":"string","format":"email"},"note":{"type":"string","maxLength":500}}}}}},"responses":{"303":{"description":"Redirect to / with access outcome"}}}},"/mcp":{"get":{"operationId":"getMcpInfo","summary":"MCP endpoint info","description":"Model Context Protocol endpoint. POST JSON-RPC for tool calls (auth required for most tools).","responses":{"200":{"description":"MCP server info"},"401":{"description":"Authentication required"}}},"post":{"operationId":"postMcp","summary":"MCP JSON-RPC","description":"Invoke MCP tools via JSON-RPC 2.0. See the MCP spec; most tools require authentication.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["jsonrpc","method"],"properties":{"jsonrpc":{"type":"string","const":"2.0"},"method":{"type":"string"},"params":{"type":"object"},"id":{"type":["string","number"]}}}}}},"responses":{"200":{"description":"JSON-RPC response"},"401":{"description":"Authentication required"}}}},"/privacy":{"get":{"operationId":"getPrivacy","summary":"Privacy policy","description":"Privacy policy for this pfa installation.","responses":{"200":{"description":"Privacy policy HTML"}}}},"/terms":{"get":{"operationId":"getTerms","summary":"Terms of service","description":"Terms of service for this pfa installation.","responses":{"200":{"description":"Terms HTML"}}}}}}