Weightlifting
Enter your bearer token (Firebase auth) in the format: Bearer
Required. The ID of the user for whom this session is created (form field: text).
Required. The raw video file to be processed (form field type: file).
Optional. A descriptive name for the session (form field: text).
Required. The name of the exercise. Choose one of the following: 'snatch', 'clean', or 'clean_and_jerk'.
Optional. The mass of the barbell used (numeric string). Defaults to 100 kg (or 220 lb) if not provided.
Optional. A comma-separated list of joint names. Available values: 'ankle', 'knee', 'elbow', 'hip', 'shoulder'. Example: ankle,knee,hip
Video processing session created successfully (HTTP 200).
The unique identifier for the created session.
The session title (defaults if not provided).
Bad Request - Possibly due to missing user_id, missing video, or invalid form data.
Unauthorized - Missing or invalid access token.
Forbidden - The user does not have admin permission to create sessions for others.
Not Found - Indicates business logic issues or resource limitations (e.g., session limit).
Internal Server Error - Unexpected error occurred on the server.
Enter your bearer token (Firebase auth) in the format: Bearer
Set to true to retrieve a pre-generated demo session instead of a real one.
Weightlifting session details retrieved successfully.
Public URL of the analyzed video.
Public URL of the original video.
The exercise performed (e.g., 'snatch').
Name of the user associated with the session.
Activity type, expected to be 'Weightlifting'.
The title of the session.
List of timestamps corresponding to session data.
Bad Request - Invalid parameters or admin UID.
Unauthorized - Missing or invalid access token.
Forbidden - Insufficient privileges.
Not Found - Session not found or invalid activity.
Internal Server Error - An unexpected error occurred.
Enter your bearer token (Firebase auth) in the format: Bearer
Set to true to retrieve a pre-generated demo session instead of a real one.
Weightlifting session data retrieved successfully.
An array of timestamps (in seconds) for the session data.
The session activity (expected to be 'Weightlifting').
Bad Request - Invalid parameters or admin UID error.
Unauthorized - Missing or invalid access token.
Forbidden - User does not have sufficient privileges.
Not Found - The session was not found or its activity is not 'Weightlifting'.
Internal Server Error - An unexpected error occurred on the server.
Path parameter
Query Parameter (Optional)
Response structure (HTTP 200)
HTTP 200){
"exercise": "snatch",
"key_metrics": {
"power_output": [ 2350, 2425, 2510, 2600, 2705 ],
"ground_reaction_force": [ 1120, 1180, 1215, 1260, 1300 ],
"barbell_velocity": [ 0.90, 1.05, 1.28, 1.55, 2.02 ]
},
"body_positioning": {
"hip_velocity": [ 0.45, 0.52, 0.60 ],
"shin_angle": [ 75.0, 72.5, 70.2 ],
"hip_height": [ 450, 455, 468 ],
"torso_angle": [ 40.0, 38.5, 36.8 ]
},
"joint_angles": {
"hip_angle": [ 165, 159, 152 ],
"knee_angle": [ 155, 147, 138 ]
},
"barbell_positioning": {
"bar_height": [ 120, 385, 610 ],
"barbell_trajectory": [ 0, -8, -2 ],
"vertical_shoulder_height":[ 1380, 1400, 1440 ]
},
"phase_data": {
"start_of_lifting": { "image_url": "https://storage.googleapis.com..." },
"first_pull_end": { "image_url": "https://storage.googleapis.com..." }
},
"chart_data": {
"setup": { "start": 0, "end": 536 },
"first_pull": { "start": 536, "end": 952 }
},
"user_information": {
"display_name": "Ahror Jabborov",
"age": 28,
"weight": 75,
"height": 178
},
"session_date": "18/05/2025",
"comments": {}
}Error codes
Security
Enter your bearer token (Firebase auth) in the format: Bearer
Set to true to retrieve the pre-generated demo lift analysis instead of a real one.
Lift analysis report generated successfully.
Bad Request - Invalid token or parameters.
Unauthorized - Token is invalid or expired.
Forbidden - Admin access is required.
Not Found - Session not found or user does not have a valid payment plan.
Internal Server Error - An unexpected error occurred.
Generate Lift-analysis Comment Threads
{
"power_output": "thread_a12b34",
"ground_reaction_force": "thread_c56d78",
"barbell_velocity": "thread_e90f12",
"hip_velocity": "thread_g34h56",
"shin_angle": "thread_i78j90",
"hip_height": "thread_k12l34",
"torso_angle": "thread_m56n78",
"hip_angle": "thread_o90p12",
"knee_angle": "thread_q34r56",
"bar_height": "thread_s78t90",
"barbell_trajectory": "thread_u12v34",
"vertical_shoulder_height":"thread_w56x78"
}Enter your bearer token (Firebase auth) in the format: Bearer
Measurement system used inside the prompts
Threads created successfully.
Bad Request - Invalid token or parameters.
Unauthorized - Token is invalid or expired.
Forbidden - Admin access is required.
Not Found - Session not found or user does not have a valid payment plan.
Internal Server Error - An unexpected error occurred.
Enter your bearer token (Firebase auth) in the format: Bearer
Set to true to retrieve a pre-generated demo summary for this weightlifting session.
Successfully retrieved weightlifting session summary
Type of lift/exercise performed.
Date of the session (e.g. '07/04/2025').
Bad Request - Invalid parameters.
Unauthorized - Token missing or expired.
Forbidden - User lacks a valid payment plan.
Not Found - Session not located.
Internal Server Error.
Enter your bearer token (Firebase auth) in the format: Bearer
Measurement system: 'metric' or 'imperial'
Summary threads generated successfully.
Bad Request - Invalid token or parameters.
Unauthorized - Token is invalid or expired.
Forbidden - Admin access is required.
Not Found - Session not found or user does not have a valid payment plan.
Internal Server Error - An unexpected error occurred.
Last updated
Was this helpful?