GET
/
api
/
public
/
workouts
/
{id}
curl --request GET \
  --url https://api.wodup.dev/api/public/workouts/{id} \
  --header 'Authorization: Basic <encoded-value>'
{
  "description": "Back Squat 5 reps",
  "details": {
    "movements": [
      {
        "id": "mv_fT0m3viH",
        "load": null,
        "reps": "5"
      }
    ],
    "rest": {
      "type": "as_needed"
    },
    "type": "Strength"
  },
  "movements": [
    {
      "complex_details": null,
      "description": null,
      "has_calories": false,
      "has_distance": false,
      "has_duration": false,
      "has_height": false,
      "has_load": true,
      "has_power": false,
      "has_reps": true,
      "id": "mv_fT0m3viH",
      "name": "Back Squat",
      "source": "wodup",
      "video": {
        "id": "dQw4w9WgXcQ",
        "service": "youtube"
      }
    }
  ],
  "name": null,
  "type": "Strength"
}

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Headers

wodup-gym
string

Only used by platform integrations
ID of gym to execute on behalf of

Path Parameters

id
integer
required

ID of workout to retrieve

Response

200 - application/json
Workout

Workout object

description
string
required

A human readable description of the workout

details
string
required
movements
object[]
required

Movement objects referenced by this workout

Movement object

type
enum<string>
required

Workout type

Available options:
Amrap,
Cardio,
CardioIntervals,
DeathBy,
Emom,
Fgb,
ForTime,
FranStyle,
Generic,
MaxReps,
RoundsForTime,
Strength,
Tabata,
TwelveDays,
WarmUp
name
string

An official name for the workout