# Supernova Training > Supernova is a workout app for iPhone and Apple Watch — people run, lift, stretch, and follow training plans. Anyone, including AI assistants and agents, can generate a workout and hand it to a user as a link that adds it straight to their Supernova app (no account required). ## Create a workout with a link (works in any chat, no tools needed) The simplest way: write a URL and give it to the user. Tapping it previews the workout and opens it in the Supernova app. https://supernova.training/new?name=Push+Day&g=Bench+Press:4x8@135r90;Incline+DB+Press:3x10@50&g=Plank:3x45s - `name` — workout name (required). Use `+` for spaces. - `g` — one group of exercises; repeat `g` for more groups. Separate exercises with `;`. Two or more exercises in one `g` = a superset. Optional label: `g=[Finisher]Burpees:3x10`. - `min` — estimated minutes (optional). - Exercise = `NAME:SETSxREPS` (`Squat:4x8`), add `@WEIGHT` in the user's unit (`Squat:4x8@185`), add `rREST` seconds between sets (`Squat:4x8@185r120`, default 60). Timed holds: `Plank:3x45s` (also `1m`, `1m30s`). - Per-side holds are two exercises: `Pigeon+Pose+Left:1x60s;Pigeon+Pose+Right:1x60s`. - Need notes or video links? Use `json=` with a URL-encoded `WorkoutInput` (schema below) instead of `name`/`g`. Full reference: https://supernova.training/schema **Presenting the link:** never paste the raw URL. Show it as a Markdown link named after the workout, e.g. `[Open Push Day in Supernova](https://supernova.training/new?…)`. Tapping it converts the workout into an encoded share link and opens the app. ## Create a workout via the API (for agents that can make HTTP requests) To build a Supernova workout, POST a JSON workout to the create endpoint. It returns a `shareUrl`; give that link to the user. Opening it on their phone adds the workout to Supernova and opens the create/preview flow. - Endpoint: `POST https://supernova.training/api/workout/create` - Body: a `WorkoutInput` JSON object (schema below) - Response: `{ "success": true, "shareUrl": "https://supernova.training/workout/create?shared=...", "message": "..." }` - Always present the `shareUrl` to the user as a Markdown link named after the workout (e.g. `[Open Push Day in Supernova](shareUrl)`), never as a bare URL. ### WorkoutInput schema ``` { "name": "string (required)", "estimatedMinutes": "number (optional)", "exerciseGroups": [ // required, at least one { "name": "string (optional, e.g. \"Chest\" or \"Superset A\")", "restLength": "number (optional, seconds to rest after this group)", "exercises": [ // required, at least one { "name": "string (required)", "sets": "number (required, >= 1)", "reps": "number (optional)", "weight": "number (optional, in the user's unit)", "restLength": "number (optional, seconds between sets; default 60)", "duration": "number (optional, seconds — for timed exercises instead of reps)", "notes": "string (optional)", "link": "string (optional, YouTube URL only)", "tags": ["string (optional)"] } ] } ] } ``` Notes: - A group with multiple exercises is treated as a superset/circuit. - Use `duration` (seconds) instead of `reps` for timed holds (e.g. planks, stretches). - Per-side exercises: never say "each side" in notes. Timed holds → two exercises (Left / Right) with the per-side duration; rep-based → two exercises, or one with reps = total for both sides and notes "alternating". - `link` must be a YouTube URL; other domains are rejected. ### Example ``` curl -X POST https://supernova.training/api/workout/create \ -H "Content-Type: application/json" \ -d '{ "name": "Push Day", "exerciseGroups": [ { "name": "Chest", "restLength": 120, "exercises": [ { "name": "Bench Press", "sets": 4, "reps": 8, "weight": 135, "restLength": 90 }, { "name": "Incline Dumbbell Press", "sets": 3, "reps": 10, "weight": 50, "restLength": 60 } ]} ] }' ``` ## Program bundles (multiple routines + a schedule) For a whole program — several workouts/routines and when to do them (e.g. a morning stretch, a workout, and a night stretch daily) — produce a single `ProgramBundle` JSON and `POST` it to `https://supernova.training/api/program/create`; present the returned `shareUrl`. Opening it shows a preview and applies the workouts + routines + scheduled sessions at once. (Or the user pastes/imports the JSON via + → Import a workout.) ``` { "program": { "id": "prog_my_week", "name": "My Week" }, // reuse id to update, not duplicate "workouts": [ /* WorkoutInput[] — reference these by name */ ], "routines": [ { "name": "Daily Trio", "workouts": ["Morning Stretch", "Push Day", "Night Stretch"] } ], "schedule": [ { "ref": "Morning Stretch", "days": "daily", "time": "07:00", "reminder": true }, { "ref": "Push Day", "days": "weekdays", "time": "17:30" }, { "ref": "Night Stretch", "days": "daily", "time": "21:00" } ] } ``` - `ref` = a workout or routine name in the bundle. `days` = `"daily"`, `"weekdays"`, `"weekends"`, or `0–6` (Sun = 0). `time` = 24h `"HH:MM"`. - In-app **Build with AI → Copy my training context** hands you the user's workouts + per-exercise progression (weights/reps/est. 1RM) for progressive overload; **Share my program** exports their current setup as a ProgramBundle. ## MCP server (for agents) Supernova runs a remote MCP server with a `create_workout` tool. MCP-capable clients (Claude, ChatGPT Apps, Cursor, …) can connect and create workouts natively — no copy-paste. - Streamable HTTP: `https://supernova.training/api/mcp` - Tool: `create_workout(name, exerciseGroups[, estimatedMinutes])` → returns a `shareUrl` ## Reference - [Workout schema](https://supernova.training/schema) — link format, full JSON format, enums and examples - [Skill instructions](https://supernova.training/skill.md) — step-by-step guidance for agents - [Connect an assistant](https://supernova.training/connect) — MCP setup for Claude, ChatGPT, Muse and Grok