Skip to content

Generate From Results

POST
/report/generate-from-results

Generate a PDF report directly from Results Panel data.

Unlike /generate which requires scoring objects and pack context, this endpoint accepts raw table data (columns + rows) and renders a standalone PDF report using the results-report.html template.

Returns the PDF as a binary response with Content-Disposition attachment.

ResultsReportRequest

Request body for Results Panel PDF export.

Accepts the same columns/rows shape as the frontend DataTable, plus optional stats, chart config, and map snapshot.

object
title
Title
string
default: Assessment Results
columns
required
Columns
Array<object>
ResultsReportColumn

Column definition from the Results Panel DataTable.

object
key
required
Key
string
label
required
Label
string
type
Any of:
string
rows
required
Rows
Array<object>
object
key
additional properties
any
stats
Any of:
Array<object>
ResultsReportStat

Summary statistic card.

object
label
required
Label
string
value
required
Any of:
string
color
Any of:
string
chart_config
Any of:
object
key
additional properties
any
include_map_snapshot
Include Map Snapshot
boolean
map_snapshot_base64
Any of:
string

Successful Response

Validation Error

HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object