Endpoints4 endpoints
POST/api/tools/report/generate
$0.05PDF report from structured content
POST/api/tools/report/pdf/generate
$0.05Styled PDF with metrics and formatted sections
POST/api/tools/report/docx/generate
$0.06Editable DOCX memo output
POST/api/tools/report/xlsx/generate
$0.07XLSX workbook with tabular data
Request Schema
FieldTypeRequiredDescription
titlestringYesDocument title
sectionsSection[]YesArray of { heading: string, body: string } objects
metricsMetric[]NoOptional callout metrics: [{ label, value }]
rowsobject[]NoArray of row objects for XLSX export
Example Request
POST /api/tools/report/pdf/generate
Content-Type: application/json

{
  "title": "Q1 Compliance Summary",
  "sections": [
    { "heading": "Executive Summary", "body": "..." },
    { "heading": "Findings", "body": "..." }
  ],
  "metrics": [
    { "label": "Wallets Screened", "value": "1,240" },
    { "label": "Flags Raised", "value": "3" }
  ]
}
Example Response
{
  "url": "https://cdn.aurelianflo.com/reports/abc123.pdf",
  "expires_at": "2025-04-08T12:00:00Z",
  "size_bytes": 142080,
  "pages": 4
}