API access to Intervals.icu

You need to generate Intervals.icu JSON for your plan and use this endpoint to upload it to an empty plan in your workout library.

https://intervals.icu/api-docs.html#post-/api/v1/athlete/-id-/workouts/bulk

Create a new plan in the UI and use the inspector to find its ID. This is the folder_id for the workouts. In this case it is 321405.

POST /api/v1/athlete/{id}/workouts/bulk
[
  {
    "name": "Test 1",
    "description": "This is fun!\n\n- 60m Z2",
    "folder_id": 321405,
    "type": "Ride",
    "day": 3
  }
]

Intervals.icu will parse the description and create the workout(s). You need to close your library in the UI and re-open to see it. The “day” is a zero based day from the start of the plan.

You can also use the API to create the plan in the first place instead of using the UI etc…

1 Like