Skip to content

Download client profile as PDF

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

Renders a branded profile PDF for the athlete: a cover with the overall technique score + profile (gender / height / weight) and an activity-summary table (sessions, last seen, latest + average score per activity). ?units=imperial to flip height / weight to imperial, ?lang=en|ru|es for the localised copy. Returns binary application/pdf. Team-scoped — 404 for a client owned by another team.

id
required
string format: uuid
lang
string

en (default) / ru / es.

units
string

metric (default) or imperial.

The rendered client-profile report as application/pdf. Sent with Content-Disposition: attachment; filename="aikynetix-client-<id>.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
Examples
Example404—NoSuchClientOnThisTeam

404 — No such client on this team

{
"detail": "client_not_found"
}