Skip to content

Download a Solution report as PDF

GET
/api/solutions/runs/{run_id}/pdf/
curl --request GET \
--url http://localhost:8000/api/solutions/runs/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/pdf/ \
--header 'Authorization: Bearer <token>'

Renders a branded PDF of the run’s report: cover, score, the metric / breakdown / key-insight blocks, charts, phase timings, injury risk / history, back-view values, and the AI written analysis. ?units=imperial flips metric → imperial throughout; ?lang=en|ru|es for the localised copy. Returns binary application/pdf.

run_id
required
string format: uuid
lang
string

en (default) / ru / es.

units
string

metric (default) or imperial.

The rendered report as application/pdf. Sent with Content-Disposition: attachment; filename="aikynetix-<solution-slug>-<yyyymmdd>.pdf".

Media typeapplication/json
string format: binary
Examplegenerated
binary
Media typeapplication/json
object
detail
required

Human-readable message, or a stable machine code for the cases a client branches on. The standard envelope for 400 (validation — a field-keyed object may appear instead), 401 (missing / invalid credentials), 403 (authenticated but not permitted), and 404 (absent — cross-team records are collapsed to 404 so the API never leaks the existence of another team’s data).

string
Examplegenerated
{
"detail": "example"
}
Media typeapplication/json
object
detail
required

Human-readable message, or a stable machine code for the cases a client branches on. The standard envelope for 400 (validation — a field-keyed object may appear instead), 401 (missing / invalid credentials), 403 (authenticated but not permitted), and 404 (absent — cross-team records are collapsed to 404 so the API never leaks the existence of another team’s data).

string
Examplegenerated
{
"detail": "example"
}