{"openapi":"3.1.0","info":{"title":"Exercise Database & AI Workout Planner - Fitness","description":"870+ exercises with instructions, muscles, equipment and photos, smart substitutes, and AI workout plans built only from those exercises.","version":"v1"},"servers":[{"url":"https://exercise-database-ai-workout-planner-fitness.p.rapidapi.com","description":"RapidAPI"}],"paths":{"/v1/workout/exercises":{"get":{"tags":["Exercises"],"summary":"Search and filter exercises","description":"Search the 870+ exercises by name and filter them by muscle, equipment,\nlevel, category, force and mechanic. Each exercise comes with its muscles,\nstep-by-step instructions and two photos. With `q`, best matches first;\nwithout it, alphabetical. No AI. 1 credit.","operationId":"searchExercises","parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","maxLength":100,"description":"Words of the name, e.g. 'bench press', 'pushup'; also matches muscles and equipment.","examples":["squat"],"title":"Q"},"description":"Words of the name, e.g. 'bench press', 'pushup'; also matches muscles and equipment."},{"name":"muscle","in":"query","required":false,"schema":{"type":"string","maxLength":300,"description":"Primary muscle(s), comma-separated: chest, lats, quadriceps... or a group: back, legs, arms, core, upper body, lower body.","examples":["quadriceps"],"title":"Muscle"},"description":"Primary muscle(s), comma-separated: chest, lats, quadriceps... or a group: back, legs, arms, core, upper body, lower body."},{"name":"secondary","in":"query","required":false,"schema":{"type":"boolean","description":"Also match exercises that work `muscle` as a secondary muscle.","default":false,"title":"Secondary"},"description":"Also match exercises that work `muscle` as a secondary muscle."},{"name":"equipment","in":"query","required":false,"schema":{"type":"string","maxLength":300,"description":"Equipment, comma-separated: body only, dumbbell, barbell, kettlebells, cable, machine, bands, medicine ball, exercise ball, foam roll, e-z curl bar, other.","examples":["dumbbell,body only"],"title":"Equipment"},"description":"Equipment, comma-separated: body only, dumbbell, barbell, kettlebells, cable, machine, bands, medicine ball, exercise ball, foam roll, e-z curl bar, other."},{"name":"level","in":"query","required":false,"schema":{"type":"string","maxLength":300,"description":"beginner, intermediate or expert, comma-separated.","examples":["beginner"],"title":"Level"},"description":"beginner, intermediate or expert, comma-separated."},{"name":"category","in":"query","required":false,"schema":{"type":"string","maxLength":300,"description":"strength, stretching, plyometrics, powerlifting, olympic weightlifting, strongman, cardio.","examples":["strength"],"title":"Category"},"description":"strength, stretching, plyometrics, powerlifting, olympic weightlifting, strongman, cardio."},{"name":"force","in":"query","required":false,"schema":{"type":"string","maxLength":300,"description":"push, pull or static.","examples":["push"],"title":"Force"},"description":"push, pull or static."},{"name":"mechanic","in":"query","required":false,"schema":{"type":"string","maxLength":300,"description":"compound or isolation.","examples":["compound"],"title":"Mechanic"},"description":"compound or isolation."},{"name":"include_instructions","in":"query","required":false,"schema":{"type":"boolean","description":"false for a lighter answer without the steps.","default":true,"title":"Include Instructions"},"description":"false for a lighter answer without the steps."},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"1-100.","examples":[10],"default":20,"title":"Limit"},"description":"1-100."},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","maximum":10000,"minimum":0,"description":"Results to skip, for paging.","default":0,"title":"Offset"},"description":"Results to skip, for paging."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExerciseSearchResponse"},"examples":{"Search Exercises":{"summary":"Search Exercises","value":{"total":34,"count":10,"offset":0,"limit":10,"results":[{"id":"Barbell_Squat","name":"Barbell Squat","category":"strength","level":"beginner","force":"push","mechanic":"compound","equipment":"barbell","primary_muscles":["quadriceps"],"secondary_muscles":["calves","glutes","hamstrings","lower back"]}]}}}}}},"400":{"description":"Invalid input, or the target could not be processed (see `error.code`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Missing proxy secret (call through RapidAPI with your key).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Invalid proxy secret.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"Daily limit of your plan reached.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"x-rapidapi-endpoint":"Search Exercises"}},"/v1/workout/exercises/{exercise_id}":{"get":{"tags":["Exercises"],"summary":"One exercise: muscles, equipment, instructions, photos","description":"The full record of one exercise: category, level, force, mechanic,\nequipment, primary and secondary muscles, step-by-step instructions and\nstart/end photos. 404 `exercise_not_found` (not billed). 1 credit.","operationId":"getExercise","parameters":[{"name":"exercise_id","in":"path","required":true,"schema":{"type":"string","maxLength":100,"description":"Exercise id (or exact name).","examples":["Barbell_Squat"],"title":"Exercise Id"},"description":"Exercise id (or exact name)."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkoutExercise"},"examples":{"Get Exercise":{"summary":"Get Exercise","value":{"id":"Barbell_Squat","name":"Barbell Squat","category":"strength","level":"beginner","force":"push","mechanic":"compound","equipment":"barbell","primary_muscles":["quadriceps"],"secondary_muscles":["calves","glutes","hamstrings","lower back"]}}}}}},"400":{"description":"Invalid input, or the target could not be processed (see `error.code`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Missing proxy secret (call through RapidAPI with your key).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Invalid proxy secret.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Nothing found for this identifier. Not billed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"Daily limit of your plan reached.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"x-rapidapi-endpoint":"Get Exercise"}},"/v1/workout/exercises/{exercise_id}/alternatives":{"get":{"tags":["Exercises"],"summary":"Substitutes for an exercise: same muscles, your equipment","description":"Exercises that can replace this one (machine taken, no barbell at\nhome, too hard): same primary muscles and movement family, ranked by a\nsimilarity score from shared muscles, push/pull, mechanic, category and\nlevel. No AI. 404 `exercise_not_found` (not billed). 1 credit.","operationId":"getExerciseAlternatives","parameters":[{"name":"exercise_id","in":"path","required":true,"schema":{"type":"string","maxLength":100,"description":"Exercise id (or exact name).","examples":["Barbell_Squat"],"title":"Exercise Id"},"description":"Exercise id (or exact name)."},{"name":"equipment","in":"query","required":false,"schema":{"type":"string","maxLength":300,"description":"Only substitutes doable with this equipment, comma-separated.","examples":["dumbbell,body only"],"title":"Equipment"},"description":"Only substitutes doable with this equipment, comma-separated."},{"name":"other_equipment","in":"query","required":false,"schema":{"type":"boolean","description":"Only substitutes that use different equipment.","default":false,"title":"Other Equipment"},"description":"Only substitutes that use different equipment."},{"name":"level","in":"query","required":false,"schema":{"type":"string","maxLength":300,"description":"beginner, intermediate or expert, comma-separated.","examples":["beginner,intermediate"],"title":"Level"},"description":"beginner, intermediate or expert, comma-separated."},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":30,"minimum":1,"description":"1-30.","examples":[5],"default":10,"title":"Limit"},"description":"1-30."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExerciseAlternativesResponse"},"examples":{"Get Exercise Alternatives":{"summary":"Get Exercise Alternatives","value":{"exercise":{"id":"Barbell_Squat","name":"Barbell Squat","category":"strength","level":"beginner","force":"push","mechanic":"compound","equipment":"barbell","primary_muscles":["quadriceps"],"secondary_muscles":["calves","glutes","hamstrings","lower back"]},"count":5,"alternatives":[{"id":"Barbell_Squat","name":"Barbell Squat","category":"strength","level":"beginner","force":"push","mechanic":"compound","equipment":"barbell","primary_muscles":["quadriceps"],"secondary_muscles":["calves","glutes","hamstrings","lower back"],"similarity":86}]}}}}}},"400":{"description":"Invalid input, or the target could not be processed (see `error.code`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Missing proxy secret (call through RapidAPI with your key).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Invalid proxy secret.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Nothing found for this identifier. Not billed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"Daily limit of your plan reached.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"x-rapidapi-endpoint":"Get Exercise Alternatives"}},"/v1/workout/filters":{"get":{"tags":["Exercises"],"summary":"Every muscle, equipment, level and category, with counts","description":"The values the filters accept, each with its number of exercises, and\nthe muscle groups (back, legs, arms, core...) accepted as shortcuts.\nBuild your app's filter menus from it. 1 credit.","operationId":"listExerciseFilters","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExerciseFiltersResponse"},"examples":{"List Exercise Filters":{"summary":"List Exercise Filters","value":{"total_exercises":876,"muscles":[{"name":"quadriceps","exercises":148}],"muscle_groups":{},"equipment":[{"name":"quadriceps","exercises":148}],"levels":[{"name":"quadriceps","exercises":148}],"categories":[{"name":"quadriceps","exercises":148}],"forces":[{"name":"quadriceps","exercises":148}],"mechanics":[{"name":"quadriceps","exercises":148}]}}}}}},"400":{"description":"Invalid input, or the target could not be processed (see `error.code`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Missing proxy secret (call through RapidAPI with your key).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Invalid proxy secret.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"Daily limit of your plan reached.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"x-rapidapi-endpoint":"List Exercise Filters"}},"/v1/workout/plan":{"post":{"tags":["AI Workout Planner"],"summary":"AI workout plan, week by week, from database exercises","description":"Generate a workout program for a goal, level, equipment and schedule:\nweekly sessions with sets, reps, rest and cues, every week written out,\nswaps and safety notes, only database exercises. Not medical advice. 20\ncredits per 25 slots (exercises a week + weeks): 20 to 80, see `credits`.","operationId":"generateWorkoutPlan","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkoutPlanRequest"},"examples":{"Generate Workout Plan":{"value":{"goal":"muscle_gain","level":"intermediate","equipment":["dumbbell","bands"],"days_per_week":3,"minutes_per_session":45,"weeks":4,"focus":["glutes"],"limitations":["knees"]}}}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkoutPlanResponse"},"examples":{"Generate Workout Plan":{"summary":"Generate Workout Plan (real response)","value":{"plan":{"title":"Glute-Focused Hypertrophy Program","summary":"A 3-day full-body split focusing on glute development and posterior chain strength while protecting the knees.","goal":"muscle_gain","level":"intermediate","days_per_week":3,"minutes_per_session":45,"weeks":4,"split":"Full Body A, B, A","equipment":["body only","dumbbell","bands"],"focus":["glutes"],"limitations":["knees"]},"sessions":[{"day":1,"name":"Full Body A","focus":"Glute and Upper Body Push","warmup":"Perform 5 minutes of light movement and dynamic arm circles.","exercises":[{"exercise_id":"Single_Leg_Glute_Bridge","name":"Single Leg Glute Bridge","sets":4,"reps":"12-15 per side","rest_seconds":90,"note":"Squeeze glutes at the top.","primary_muscles":["glutes"],"equipment":"body only","image":"https://cdn.jsdelivr.net/gh/yuhonas/free-exercise-db@f00c92c7dcf1216a928a52c3706c7ce8e2f71ed5/exercises/Single_Leg_Glute_Bridge/0.jpg","swaps":[{"exercise_id":"Leg_Lift","name":"Leg Lift","equipment":"body only"},{"exercise_id":"Butt_Lift_Bridge","name":"Butt Lift (Bridge)","equipment":"body only"}]},{"exercise_id":"Stiff-Legged_Dumbbell_Deadlift","name":"Stiff-Legged Dumbbell Deadlift","sets":3,"reps":"8-12","rest_seconds":120,"note":"Keep back flat and hinge at hips.","primary_muscles":["hamstrings"],"equipment":"dumbbell","image":"https://cdn.jsdelivr.net/gh/yuhonas/free-exercise-db@f00c92c7dcf1216a928a52c3706c7ce8e2f71ed5/exercises/Stiff-Legged_Dumbbell_Deadlift/0.jpg","swaps":[{"exercise_id":"Band_Good_Morning","name":"Band Good Morning","equipment":"bands"},{"exercise_id":"Band_Good_Morning_Pull_Through","name":"Band Good Morning (Pull Through)","equipment":"bands"}]},{"...":"Dumbbell Bench Press, Dumbbell Shoulder Press, Monster Walk"}],"cooldown":"Perform 5 minutes of static stretching for the hamstrings and chest.","estimated_minutes":48},{"...":"Day 2: Hip Extension with Bands, One-Arm Dumbbell Row, Hyperextensions, Dumbbell Bicep Curl, Bench Dips"},{"...":"Day 3: Hip Lift with Band, Natural Glute Ham Raise, Pushups, Arnold Dumbbell Press, Glute Kickback"}],"progression":[{"week":1,"theme":"Acclimation","sets_change":0,"rep_change":0,"intensity":"RPE 7","note":"Focus on perfect form."},{"week":2,"theme":"Hypertrophy Loading","sets_change":1,"rep_change":0,"intensity":"RPE 8","note":"Increase volume."},{"week":3,"theme":"Peak Intensity","sets_change":1,"rep_change":-1,"intensity":"RPE 9","note":"Push close to failure."},{"week":4,"theme":"Deload","sets_change":-1,"rep_change":1,"intensity":"RPE 6","note":"Reduce fatigue."}],"weeks":[{"...":"week 1 as the sessions above"},{"week":2,"theme":"Hypertrophy Loading","intensity":"RPE 8","note":"Increase volume.","sessions":[{"day":1,"name":"Full Body A","exercises":[{"exercise_id":"Single_Leg_Glute_Bridge","name":"Single Leg Glute Bridge","sets":5,"reps":"12-15 per side","rest_seconds":90},{"exercise_id":"Stiff-Legged_Dumbbell_Deadlift","name":"Stiff-Legged Dumbbell Deadlift","sets":4,"reps":"8-12","rest_seconds":120},{"...":"..."}]}]},{"...":"weeks 3 and 4"}],"guidelines":["Perform exercises with a slow, controlled tempo.","Rest at least one full day between sessions.","Increase weight only when all reps are completed with perfect form.","Prioritize glute activation in every movement."],"safety":{"notes":["Avoid deep squats or lunges to protect the knees; use hip hinges and bridges instead.","Stop immediately if you feel sharp pain in the joints or back."],"disclaimer":"General fitness guidance for healthy adults, not medical advice. Check with a doctor or physiotherapist before starting, especially with an injury, pain or a health condition, and stop any exercise that hurts."},"checks":{"exercises_validated":15,"removed":0},"credits":20}}}}}},"400":{"description":"Invalid input, or the target could not be processed (see `error.code`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Missing proxy secret (call through RapidAPI with your key).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Invalid proxy secret.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"Daily limit of your plan reached.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"The AI provider failed (`ai_error`) or capacity is temporarily exhausted (`capacity_exhausted`); retry. Not billed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"x-rapidapi-endpoint":"Generate Workout Plan"}}},"components":{"schemas":{"ErrorBody":{"properties":{"status":{"type":"integer","title":"Status","examples":[400]},"code":{"type":"string","title":"Code","examples":["invalid_url"]},"message":{"type":"string","title":"Message","examples":["A website URL is required."]}},"type":"object","required":["status","code","message"],"title":"ErrorBody"},"ErrorEnvelope":{"properties":{"error":{"$ref":"#/components/schemas/ErrorBody"}},"type":"object","required":["error"],"title":"ErrorEnvelope"},"ExerciseAlternative":{"properties":{"id":{"type":"string","title":"Id","examples":["Barbell_Squat"]},"name":{"type":"string","title":"Name","examples":["Barbell Squat"]},"category":{"type":"string","title":"Category","examples":["strength"]},"level":{"type":"string","title":"Level","examples":["beginner"]},"force":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Force","examples":["push"]},"mechanic":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mechanic","examples":["compound"]},"equipment":{"type":"string","title":"Equipment","description":"Exercises the source lists without equipment are 'body only'.","examples":["barbell"]},"primary_muscles":{"items":{"type":"string"},"type":"array","title":"Primary Muscles","examples":[["quadriceps"]]},"secondary_muscles":{"items":{"type":"string"},"type":"array","title":"Secondary Muscles","examples":[["calves","glutes","hamstrings","lower back"]]},"instructions":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Instructions","description":"Step by step. Left out with include_instructions=false."},"images":{"items":{"type":"string"},"type":"array","title":"Images","description":"Start and end position photos (JPEG), from the open free-exercise-db dataset through the jsDelivr CDN."},"similarity":{"type":"integer","title":"Similarity","description":"0-100: shared primary and secondary muscles, movement (push, pull), mechanic, category and level.","examples":[86]}},"type":"object","required":["id","name","category","level","equipment","primary_muscles","similarity"],"title":"ExerciseAlternative"},"ExerciseAlternativesResponse":{"properties":{"exercise":{"$ref":"#/components/schemas/WorkoutExercise"},"count":{"type":"integer","title":"Count","examples":[5]},"alternatives":{"items":{"$ref":"#/components/schemas/ExerciseAlternative"},"type":"array","title":"Alternatives"}},"type":"object","required":["exercise","count","alternatives"],"title":"ExerciseAlternativesResponse"},"ExerciseFilterValue":{"properties":{"name":{"type":"string","title":"Name","examples":["quadriceps"]},"exercises":{"type":"integer","title":"Exercises","examples":[148]}},"type":"object","required":["name","exercises"],"title":"ExerciseFilterValue"},"ExerciseFiltersResponse":{"properties":{"total_exercises":{"type":"integer","title":"Total Exercises","examples":[876]},"muscles":{"items":{"$ref":"#/components/schemas/ExerciseFilterValue"},"type":"array","title":"Muscles"},"muscle_groups":{"additionalProperties":{"items":{"type":"string"},"type":"array"},"type":"object","title":"Muscle Groups","description":"Everyday names accepted wherever a muscle is."},"equipment":{"items":{"$ref":"#/components/schemas/ExerciseFilterValue"},"type":"array","title":"Equipment"},"levels":{"items":{"$ref":"#/components/schemas/ExerciseFilterValue"},"type":"array","title":"Levels"},"categories":{"items":{"$ref":"#/components/schemas/ExerciseFilterValue"},"type":"array","title":"Categories"},"forces":{"items":{"$ref":"#/components/schemas/ExerciseFilterValue"},"type":"array","title":"Forces"},"mechanics":{"items":{"$ref":"#/components/schemas/ExerciseFilterValue"},"type":"array","title":"Mechanics"}},"type":"object","required":["total_exercises","muscles","muscle_groups","equipment","levels","categories","forces","mechanics"],"title":"ExerciseFiltersResponse"},"ExerciseSearchResponse":{"properties":{"total":{"type":"integer","title":"Total","description":"Exercises matching the filters.","examples":[34]},"count":{"type":"integer","title":"Count","examples":[10]},"offset":{"type":"integer","title":"Offset","examples":[0]},"limit":{"type":"integer","title":"Limit","examples":[10]},"results":{"items":{"$ref":"#/components/schemas/WorkoutExercise"},"type":"array","title":"Results"}},"type":"object","required":["total","count","offset","limit","results"],"title":"ExerciseSearchResponse"},"WorkoutChecks":{"properties":{"exercises_validated":{"type":"integer","title":"Exercises Validated","description":"Exercises in the plan, every one found in the database.","examples":[20]},"removed":{"type":"integer","title":"Removed","description":"Exercises the AI proposed that were not in the allowed list, removed before answering.","examples":[0]}},"type":"object","required":["exercises_validated","removed"],"title":"WorkoutChecks"},"WorkoutExercise":{"properties":{"id":{"type":"string","title":"Id","examples":["Barbell_Squat"]},"name":{"type":"string","title":"Name","examples":["Barbell Squat"]},"category":{"type":"string","title":"Category","examples":["strength"]},"level":{"type":"string","title":"Level","examples":["beginner"]},"force":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Force","examples":["push"]},"mechanic":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mechanic","examples":["compound"]},"equipment":{"type":"string","title":"Equipment","description":"Exercises the source lists without equipment are 'body only'.","examples":["barbell"]},"primary_muscles":{"items":{"type":"string"},"type":"array","title":"Primary Muscles","examples":[["quadriceps"]]},"secondary_muscles":{"items":{"type":"string"},"type":"array","title":"Secondary Muscles","examples":[["calves","glutes","hamstrings","lower back"]]},"instructions":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Instructions","description":"Step by step. Left out with include_instructions=false."},"images":{"items":{"type":"string"},"type":"array","title":"Images","description":"Start and end position photos (JPEG), from the open free-exercise-db dataset through the jsDelivr CDN."}},"type":"object","required":["id","name","category","level","equipment","primary_muscles"],"title":"WorkoutExercise"},"WorkoutPlanExercise":{"properties":{"exercise_id":{"type":"string","title":"Exercise Id","description":"Id in the exercise database (GET /exercises/{id}).","examples":["Goblet_Squat"]},"name":{"type":"string","title":"Name","examples":["Goblet Squat"]},"sets":{"type":"integer","title":"Sets","examples":[3]},"reps":{"type":"string","title":"Reps","examples":["8-12"]},"rest_seconds":{"type":"integer","title":"Rest Seconds","examples":[90]},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note","examples":["Control the descent, 3 seconds down."]},"primary_muscles":{"items":{"type":"string"},"type":"array","title":"Primary Muscles","examples":[["quadriceps"]]},"equipment":{"type":"string","title":"Equipment","examples":["kettlebells"]},"image":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image","description":"Start-position photo."},"swaps":{"items":{"$ref":"#/components/schemas/WorkoutSwap"},"type":"array","title":"Swaps","description":"Up to two database exercises for the same muscles with the equipment you have, if this one does not suit."}},"type":"object","required":["exercise_id","name","sets","reps","rest_seconds","primary_muscles","equipment"],"title":"WorkoutPlanExercise"},"WorkoutPlanRequest":{"properties":{"goal":{"type":"string","enum":["muscle_gain","strength","fat_loss","general_fitness","endurance","mobility","athletic"],"title":"Goal","description":"muscle_gain, strength, fat_loss, general_fitness, endurance, mobility or athletic (power and speed).","default":"general_fitness","examples":["muscle_gain"]},"level":{"type":"string","title":"Level","description":"beginner, intermediate or expert (advanced). Sets the exercises allowed and the training volume.","default":"beginner","examples":["intermediate"]},"equipment":{"items":{"type":"string"},"type":"array","maxItems":13,"title":"Equipment","description":"What the person has: body only, dumbbell, barbell, kettlebells, cable, machine, bands, medicine ball, exercise ball, foam roll, e-z curl bar, other (bench, pull-up bar, box...), or 'full gym'. Bodyweight exercises are always allowed; exercises that need a bench, box or bar (bench press, bench dips, pull-ups) only with 'other', machine or cable.","examples":[["dumbbell","bands"]]},"days_per_week":{"type":"integer","maximum":7.0,"minimum":1.0,"title":"Days Per Week","default":3,"examples":[4]},"minutes_per_session":{"type":"integer","maximum":120.0,"minimum":15.0,"title":"Minutes Per Session","description":"15-120, warm-up included.","default":45,"examples":[45]},"weeks":{"type":"integer","maximum":12.0,"minimum":1.0,"title":"Weeks","description":"Program length.","default":4,"examples":[4]},"focus":{"items":{"type":"string"},"type":"array","maxItems":6,"title":"Focus","description":"Muscles or groups to prioritise: chest, back, legs, arms, core, glutes, shoulders...","examples":[["glutes","back"]]},"limitations":{"items":{"type":"string","enum":["knees","lower_back","shoulders","wrists","elbows","neck","hips","ankles"]},"type":"array","title":"Limitations","description":"Areas to protect (past injury, discomfort): knees, lower_back, shoulders, wrists, elbows, neck, hips, ankles. The plan avoids loading them and leaves out jumps and Olympic lifts. Not a medical assessment.","examples":[["knees"]]},"preferences":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Preferences","description":"Short training preferences, e.g. 'no running, likes supersets'. Used as preferences only.","examples":["Short rests, likes supersets"]},"language":{"type":"string","pattern":"^[A-Za-z][A-Za-z ()-]{1,29}$","title":"Language","description":"Language of the plan's texts. Exercise names stay in English.","default":"English","examples":["English"]}},"type":"object","title":"WorkoutPlanRequest"},"WorkoutPlanResponse":{"properties":{"plan":{"$ref":"#/components/schemas/WorkoutPlanSummary"},"sessions":{"items":{"$ref":"#/components/schemas/WorkoutSession"},"type":"array","title":"Sessions","description":"The weekly template: one session per training day."},"progression":{"items":{"$ref":"#/components/schemas/WorkoutProgression"},"type":"array","title":"Progression","description":"One entry per week."},"weeks":{"items":{"$ref":"#/components/schemas/WorkoutWeek"},"type":"array","title":"Weeks","description":"The whole program, week by week, with that week's sets and reps."},"guidelines":{"items":{"type":"string"},"type":"array","title":"Guidelines"},"safety":{"$ref":"#/components/schemas/WorkoutSafety"},"checks":{"$ref":"#/components/schemas/WorkoutChecks"},"credits":{"type":"integer","title":"Credits","examples":[10]}},"type":"object","required":["plan","sessions","progression","weeks","guidelines","safety","checks","credits"],"title":"WorkoutPlanResponse"},"WorkoutPlanSummary":{"properties":{"title":{"type":"string","title":"Title","examples":["4-Day Dumbbell Hypertrophy Plan"]},"summary":{"type":"string","title":"Summary"},"goal":{"type":"string","title":"Goal","examples":["muscle_gain"]},"level":{"type":"string","title":"Level","examples":["intermediate"]},"days_per_week":{"type":"integer","title":"Days Per Week","examples":[4]},"minutes_per_session":{"type":"integer","title":"Minutes Per Session","examples":[45]},"weeks":{"type":"integer","title":"Weeks","examples":[4]},"split":{"type":"string","title":"Split","examples":["Upper / Lower"]},"equipment":{"items":{"type":"string"},"type":"array","title":"Equipment","examples":[["body only","dumbbell","bands"]]},"focus":{"items":{"type":"string"},"type":"array","title":"Focus"},"limitations":{"items":{"type":"string"},"type":"array","title":"Limitations"}},"type":"object","required":["title","summary","goal","level","days_per_week","minutes_per_session","weeks","split","equipment"],"title":"WorkoutPlanSummary"},"WorkoutProgression":{"properties":{"week":{"type":"integer","title":"Week","examples":[1]},"theme":{"type":"string","title":"Theme","examples":["Foundation"]},"sets_change":{"type":"integer","title":"Sets Change","description":"Sets added to (or removed from) the exercises that week. Extra sets go to the main lifts first and only while the session still fits its length; cardio and timed blocks keep their duration.","examples":[0]},"rep_change":{"type":"integer","title":"Rep Change","description":"Shift applied to numeric rep ranges that week.","examples":[0]},"intensity":{"type":"string","title":"Intensity","examples":["RPE 7: 3 reps left in the tank"]},"note":{"type":"string","title":"Note","examples":["Learn the movements with a weight you control."]}},"type":"object","required":["week","theme","sets_change","rep_change","intensity","note"],"title":"WorkoutProgression"},"WorkoutSafety":{"properties":{"notes":{"items":{"type":"string"},"type":"array","title":"Notes"},"disclaimer":{"type":"string","title":"Disclaimer"}},"type":"object","required":["disclaimer"],"title":"WorkoutSafety"},"WorkoutSession":{"properties":{"day":{"type":"integer","title":"Day","examples":[1]},"name":{"type":"string","title":"Name","examples":["Lower Body A"]},"focus":{"type":"string","title":"Focus","examples":["Quadriceps and glutes"]},"warmup":{"type":"string","title":"Warmup","examples":["5 minutes of brisk walking, then leg swings."]},"exercises":{"items":{"$ref":"#/components/schemas/WorkoutPlanExercise"},"type":"array","title":"Exercises"},"cooldown":{"type":"string","title":"Cooldown","examples":["Easy walking and light stretching."]},"estimated_minutes":{"type":"integer","title":"Estimated Minutes","description":"Work, rest, warm-up and cool-down, at the week-1 volume. Never above minutes_per_session: the service trims sets, timed blocks or the last exercises of a session that would run over.","examples":[44]}},"type":"object","required":["day","name","focus","warmup","exercises","cooldown","estimated_minutes"],"title":"WorkoutSession"},"WorkoutSwap":{"properties":{"exercise_id":{"type":"string","title":"Exercise Id","examples":["Dumbbell_Lunges"]},"name":{"type":"string","title":"Name","examples":["Dumbbell Lunges"]},"equipment":{"type":"string","title":"Equipment","examples":["dumbbell"]}},"type":"object","required":["exercise_id","name","equipment"],"title":"WorkoutSwap"},"WorkoutWeek":{"properties":{"week":{"type":"integer","title":"Week","examples":[1]},"theme":{"type":"string","title":"Theme","examples":["Foundation"]},"intensity":{"type":"string","title":"Intensity","examples":["RPE 7"]},"note":{"type":"string","title":"Note","default":""},"sessions":{"items":{"$ref":"#/components/schemas/WorkoutWeekSession"},"type":"array","title":"Sessions"}},"type":"object","required":["week","theme","intensity","sessions"],"title":"WorkoutWeek"},"WorkoutWeekExercise":{"properties":{"exercise_id":{"type":"string","title":"Exercise Id","examples":["Goblet_Squat"]},"name":{"type":"string","title":"Name","examples":["Goblet Squat"]},"sets":{"type":"integer","title":"Sets","examples":[3]},"reps":{"type":"string","title":"Reps","examples":["8-12"]},"rest_seconds":{"type":"integer","title":"Rest Seconds","examples":[90]}},"type":"object","required":["exercise_id","name","sets","reps","rest_seconds"],"title":"WorkoutWeekExercise"},"WorkoutWeekSession":{"properties":{"day":{"type":"integer","title":"Day","examples":[1]},"name":{"type":"string","title":"Name","examples":["Lower Body A"]},"exercises":{"items":{"$ref":"#/components/schemas/WorkoutWeekExercise"},"type":"array","title":"Exercises"}},"type":"object","required":["day","name","exercises"],"title":"WorkoutWeekSession"}},"securitySchemes":{"RapidAPIKey":{"type":"apiKey","in":"header","name":"X-RapidAPI-Key"},"RapidAPIHost":{"type":"apiKey","in":"header","name":"X-RapidAPI-Host"}}},"tags":[{"name":"Exercises","description":"Search, look up and swap exercises of the database. No AI."},{"name":"AI Workout Planner","description":"Week-by-week programs built from database exercises."}],"security":[{"RapidAPIKey":[],"RapidAPIHost":[]}]}