Download client profile as PDF
const url = 'http://localhost:8000/api/clients/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/pdf/';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Query Parameters
Section titled “Query Parameters”en (default) / ru / es.
metric (default) or imperial.
Responses
Section titled “Responses”The rendered client-profile report as application/pdf. Sent with Content-Disposition: attachment; filename="aikynetix-client-<id>.pdf".
Examplegenerated
binaryobject
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).
Examplegenerated
{ "detail": "example"}object
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).
Examples
404 — No such client on this team
{ "detail": "client_not_found"}