Get Session Details

Retrieve detailed information about a specific workout session.

Endpoint

GET /v1/{clientName}/sessions/{sessionId}

Path Parameters

  • clientName: (Required) The name of client (given during onboarding).
  • sessionId: (Required) The unique identifier for the workout session.

Response

The API returns a JSON object containing the following fields:

  • kcal: The total calories burned during the workout session.
  • score: The overall score for the workout session.
  • avg_accuracy: The average accuracy of the exercises performed during the workout session.
  • exercises: A list of exercises performed during the workout session. Each exercise object contains the following fields:
    • name: The name of the exercise.
    • reps: The number of repetitions performed.
    • nr_mistakes: The number of mistakes made during the exercise.
    • avg_accuracy: The average accuracy of the exercise.
    • all_mistakes: A list of mistakes made during the exercise.

Example Response

{
  "kcal": 98,
  "score": 23660,
  "avg_accuracy": 76,
  "exercises": [
    {
      "name": "jumping_jack",
      "reps": 50,
      "nr_mistakes": 15,
      "avg_accuracy": 79,
      "all_mistakes": [
        "stretch your arms out more",
        "make sure to stretch your arms out more",
        "stretch your arms out more",
      ]
    },
    ...
  ]
}

Error Response

If there is an error with the request, the response will contain an error field with the value trueand an `error_message field with a description of the error.

{
  "error": true,
  "error_message": "missing a path parameter sessionId"
}