{"title":"Report PDF generation","routeKey":"POST /api/tools/report/pdf/generate","method":"POST","path":"/api/tools/report/pdf/generate","description":"Generate a styled PDF report from a shared report model with executive summary, metrics, sections, and tables for client delivery or internal decision review.","proof":"Best for final distribution when the report needs a fixed layout and a clean presentation layer.","discipline":"Documents","category":"generated/document","price":"$0.05 USDC","outputKind":"json","docsOnlyGet":true,"requestExample":{"report_meta":{"report_type":"ops-brief","title":"Weekly Ops Brief","author":"AurelianFlo"},"executive_summary":["Core routes stayed available through the reporting window.","Manual review remains recommended for billing anomalies."],"headline_metrics":[{"label":"Uptime","value":"99.9%","unit":"percent"},{"label":"Incidents","value":1,"unit":"count"}],"tables":{"route_health":{"columns":["route","status"],"rows":[{"route":"/api/tools/report/generate","status":"healthy"}]}}},"requestSchema":{"oneOf":[{"type":"object","properties":{"report_meta":{"type":"object","properties":{"report_type":{"type":"string"},"title":{"type":"string"},"report_title":{"type":"string"},"name":{"type":"string"},"author":{"type":"string"},"owner":{"type":"string"},"date":{"type":"string"},"version":{"type":"string"}},"additionalProperties":true},"executive_summary":{"type":"array","items":{"type":"string"}},"headline_metrics":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"value":{"oneOf":[{"type":"string"},{"type":"number"},{"type":"integer"},{"type":"boolean"},{"type":"null"}]},"unit":{"type":"string"}},"required":["label"],"additionalProperties":true}},"tables":{"type":"object","additionalProperties":{"type":"object","properties":{"columns":{"type":"array","items":{"type":"string"}},"rows":{"type":"array","items":{"oneOf":[{"type":"object","additionalProperties":{"oneOf":[{"type":"string"},{"type":"number"},{"type":"integer"},{"type":"boolean"},{"type":"null"}]}},{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"number"},{"type":"integer"},{"type":"boolean"},{"type":"null"}]}}]}}},"additionalProperties":true}},"export_artifacts":{"type":"object","properties":{"workbook_rows":{"type":"object","additionalProperties":{"type":"array","items":{"oneOf":[{"type":"object","additionalProperties":{"oneOf":[{"type":"string"},{"type":"number"},{"type":"integer"},{"type":"boolean"},{"type":"null"}]}},{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"number"},{"type":"integer"},{"type":"boolean"},{"type":"null"}]}}]}}}},"additionalProperties":true},"chart_hints":{"type":"array","items":{"type":"object","additionalProperties":true}},"result":{"type":"object","additionalProperties":true}},"required":["report_meta"],"additionalProperties":true},{"type":"object","properties":{"title":{"type":"string"},"subtitle":{"type":"string"},"summary":{"type":"string"},"sections":{"type":"array","items":{"type":"object","properties":{"heading":{"type":"string"},"title":{"type":"string"},"body":{"type":"string"},"text":{"type":"string"},"bullets":{"type":"array","items":{"type":"string"}},"table":{"type":"array","items":{"type":"object","additionalProperties":{"oneOf":[{"type":"string"},{"type":"number"},{"type":"integer"},{"type":"boolean"},{"type":"null"}]}}}},"additionalProperties":true}}},"required":["title"],"additionalProperties":true}]},"outputExample":{"success":true,"data":{"endpoint":"/api/tools/report/generate","tool":"Report PDF","handlerMode":"auto_local","previewToken":"7-report-pdf"},"source":"auto-local-engine"},"relatedLinks":[],"curlExample":"curl -X POST \"https://api.aurelianflo.com/api/tools/report/pdf/generate\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  # include x402 settlement headers after the initial 402 challenge \\\n  -d '{\n  \"report_meta\": {\n    \"report_type\": \"ops-brief\",\n    \"title\": \"Weekly Ops Brief\",\n    \"author\": \"AurelianFlo\"\n  },\n  \"executive_summary\": [\n    \"Core routes stayed available through the reporting window.\",\n    \"Manual review remains recommended for billing anomalies.\"\n  ],\n  \"headline_metrics\": [\n    {\n      \"label\": \"Uptime\",\n      \"value\": \"99.9%\",\n      \"unit\": \"percent\"\n    },\n    {\n      \"label\": \"Incidents\",\n      \"value\": 1,\n      \"unit\": \"count\"\n    }\n  ],\n  \"tables\": {\n    \"route_health\": {\n      \"columns\": [\n        \"route\",\n        \"status\"\n      ],\n      \"rows\": [\n        {\n          \"route\": \"/api/tools/report/generate\",\n          \"status\": \"healthy\"\n        }\n      ]\n    }\n  }\n}'","links":{"apiCatalog":"https://api.aurelianflo.com/api","openApi":"https://api.aurelianflo.com/openapi.json","mcpDocs":"https://api.aurelianflo.com/mcp/docs"}}