API access to Intervals.icu

I have a python script which takes a cycling workout description from excel (something like 3x(8x(1m @ 105-110% @ 100 rpm, 2m @ 80-85% @ 70 rpm) , 4m rec) ), parses it and converts to a .zwo and then uploads it to a specific date in my calendar.

I’ve been trying to do the same via a .json for running workouts but I’m having zero luck. Can running workouts get sent to the calendar in a proper structured format (i.e. not just a line of text). Anyone else done this? Thanks

Edit - I found this thread. Thank you @Jonasdlm Super stuff.