GET
/
api
/
public
/
wods
curl --request GET \
  --url https://api.wodup.dev/api/public/wods \
  --header 'Authorization: Basic <encoded-value>'
[
  {
    "components": [
      {
        "id": "wc_123abc",
        "is_alternating": false,
        "notes": "Aim for an 80% effort today.",
        "notes_for_coaches": "Try to complete this section in 10 minutes.",
        "order": 0,
        "partners": 0,
        "post_instructions": null,
        "pre_instructions": "Make sure to warm up your hips first.",
        "prefix": "A",
        "results_count": 0,
        "workout": {
          "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"
        }
      }
    ],
    "id": "wod_123abc",
    "name": "Morning Workout",
    "occurs_on": "2020-01-01",
    "order": 0,
    "program": {
      "access": "private",
      "id": "p_123abc",
      "name": "Strength and Conditioning",
      "period": "continuous",
      "status": "active"
    },
    "publish_at": "2020-01-01T00:00:00Z"
  }
]

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

Query Parameters

program_id
string

ID of program to get wods for

athlete_id
string

ID of athlete to get wods for

start_date
string

Filter by date wod programmed for, inclusive.

end_date
string

Filter by date wod programmed for, inclusive.

limit
integer
default:10

A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.

Required range: 1 <= x <= 100
after_cursor
string

A cursor for use in pagination. after_cursor is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after_cursor=obj_foo in order to fetch the next page of the list.

before_cursor
string

A cursor for use in pagination. before_cursor is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with obj_bar, your subsequent call can include before_cursor=obj_bar in order to fetch the previous page of the list.

Response

200 - application/json
Wod list
components
object[]

Components in this WOD

id
string

WOD ID

name
string

WOD name

occurs_on
string

Date WOD is programmed on

order
integer
default:0

WOD order if multiple WODs on same day

publish_at
string

Time when WOD is visible