{"openapi":"3.1.0","info":{"title":"WOD Generator & WOD Coach","summary":"Workouts of the day and AI-personalised training programmes, paid per call with x402.","description":"Free: the programmed workout of the day (`/wod/today`, `/wod/week`, `/wod/day/{date}`).\n\nPaid with **x402, USDC on Base mainnet (eip155:8453)**:\n- `POST /wod/custom`: **$0.35 USDC**. Personalised programme (injuries, custom equipment, single session or multi-week progressive block) written by an AI coach with enforced movement substitutions.\n- `GET /wod`: **$0.05 USDC**. Rule-based custom workout by equipment, format and style.\n\nRequests that fail validation are rejected before any payment is requested, and failed generations are never settled.\n\n_HYROX is a registered trademark of its owner. WOD Coach is an independent product and is not affiliated with, endorsed by or sponsored by HYROX._","version":"2.0.0","contact":{"name":"WOD Coach","url":"https://api.hybriqx.com/llms.txt"},"x-intents":["workout_generator","fitness_coaching","hyrox_programming","custom_wod"],"x-guidance":"For a personalised, injury-safe training programme call POST /wod/custom ($0.35). For a quick workout call GET /wod ($0.05). For injury exercise swaps call POST /tools/substitute ($0.02). For HYROX-format race splits call GET /tools/race-pace ($0.01). For a warm-up call GET /tools/warmup ($0.01). Today's workout is free at GET /wod/today. Pay with x402 (USDC on Base); invalid requests are rejected before payment. Also available over MCP at /mcp.","x-x402":{"network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","currency":"USDC","payTo":"0x0395c1bed0b83ad6f0329b4132191934733e637c"}},"servers":[{"url":"https://api.hybriqx.com","description":"production"}],"paths":{"/":{"get":{"tags":["free"],"summary":"Service info","operationId":"index__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[]}},"/wod/today":{"get":{"tags":["free"],"summary":"Today's programmed workout","operationId":"wod_today_wod_today_get","parameters":[{"name":"format","in":"query","required":false,"schema":{"type":"string","default":"markdown","title":"Format"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[]}},"/wod/day/{day}":{"get":{"tags":["free"],"summary":"A past or current day's workout","operationId":"wod_day_wod_day__day__get","parameters":[{"name":"day","in":"path","required":true,"schema":{"type":"string","format":"date","title":"Day"}},{"name":"format","in":"query","required":false,"schema":{"type":"string","default":"markdown","title":"Format"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[]}},"/wod/week":{"get":{"tags":["free"],"summary":"This week's programme","operationId":"wod_week_wod_week_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[]}},"/wod/custom":{"post":{"tags":["paid"],"summary":"Personalised AI-coached programme ($0.35 USDC on Base)","description":"Multi-turn AI coach. Analyses the athlete's equipment, goals and injuries, enforces movement substitutions, and returns a programme with Warm-Up, Main Work, Progression & Scaling Guidelines and Injury Modification Notes. Takes about 1–3 minutes. Add `?format=json` (or `Accept: application/json`) for structured output.","operationId":"wod_custom_wod_custom_post","parameters":[{"name":"format","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Format"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomRequest","properties":{"equipment":{"anyOf":[{"items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object"}]},"type":"array"},{"type":"string"}],"description":"Available equipment as a list (e.g. [\"50lb dumbbells\", \"pull-up bar\"]) or a comma-separated string. Use \"bodyweight only\" if none."},"user_context":{"maxLength":2000,"minLength":3,"type":"string","description":"Fitness level, goals, injuries and modifications."},"duration":{"default":"single","enum":["single","multi_week"],"type":"string","description":"single = one session; multi_week = a progressive block whose phases are fixed by week count, e.g. 4 weeks = Baseline → Volume → Intensity → Deload"},"weeks":{"default":4,"description":"multi_week only","maximum":8,"minimum":3,"type":"integer"},"sessions_per_week":{"default":3,"maximum":6,"minimum":1,"type":"integer"},"session_minutes":{"default":60,"maximum":120,"minimum":20,"type":"integer"}},"required":["equipment","user_context"],"type":"object"},"example":{"equipment":["50lb dumbbells","pull-up bar","resistance bands"],"user_context":"Intermediate, 3 years CrossFit. Left shoulder impingement, focus on lower body & engine, avoid heavy overhead pressing.","duration":"multi_week","weeks":4,"sessions_per_week":3,"session_minutes":60}}}},"responses":{"200":{"description":"The programme","content":{"application/json":{"schema":{"type":"object","properties":{"markdown":{"type":"string","description":"Full programme. Sections: Overview, Warm-Up, Main Work, Progression & Scaling Guidelines, Injury Modification Notes, Safety"},"title":{"type":"string"},"duration":{"type":"string","enum":["single","multi_week"]},"weeks":{"type":"integer"},"constraints":{"type":"object","description":"What the coach extracted and enforced","properties":{"experience_level":{"type":"string"},"goals":{"type":"array","items":{"type":"string"}},"injuries":{"type":"array","items":{"type":"object"}},"contraindicated":{"type":"array","items":{"type":"object"},"description":"Movements guaranteed absent from the prescribed work"},"substitutions":{"type":"array","items":{"type":"object"}},"equipment_inventory":{"type":"array","items":{"type":"string"}},"red_flags":{"type":"array","items":{"type":"string"}},"needs_medical_clearance":{"type":"boolean"}}},"model":{"type":"string"}},"required":["markdown","title","duration","constraints"]},"example":{"markdown":"# 4-Week Lower Body & Engine Block (Shoulder-Safe)\n\n## Overview\n- …\n\n## Warm-Up\n- …\n\n## Main Work\n### Week 1: Baseline\n#### Session 1: Posterior Chain\n- **DB Romanian Deadlift**: 4 × 8 @ RPE 7, rest 90 s\n…\n### Week 4: Deload\n…\n\n## Progression & Scaling Guidelines\n- …\n\n## Injury Modification Notes\n- Avoid: Barbell Overhead Press → Do instead: Landmine Press (neutral-grip, below-shoulder path)\n\n## Safety\n- …","title":"4-Week Lower Body & Engine Block (Shoulder-Safe)","duration":"multi_week","weeks":4,"constraints":{"experience_level":"intermediate","goals":["lower body strength","aerobic engine"],"injuries":[{"area":"left shoulder","condition":"impingement"}],"contraindicated":[{"movement":"Barbell Overhead Press","reason":"loads the impinged range"}],"substitutions":[{"avoid":"Barbell Overhead Press","use":"Landmine Press","why":"safer arc"}],"equipment_inventory":["50lb dumbbells","pull-up bar","resistance bands"],"red_flags":[],"needs_medical_clearance":false},"model":"gemini-flash-latest"}},"text/markdown":{"schema":{"type":"string"}}}},"400":{"description":"Invalid body (rejected before payment)"},"502":{"description":"Generation failed; the payment was not settled"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"402":{"description":"Payment required. The PAYMENT-REQUIRED response header holds the base64-encoded x402 challenge (x402Version 2, accepts[], resource, extensions.bazaar).","headers":{"PAYMENT-REQUIRED":{"schema":{"type":"string"},"description":"base64 JSON x402 challenge"}}}},"x-x402":{"scheme":"exact","price":"$0.35","currency":"USDC","amount":"350000","decimals":6,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","network":"eip155:8453","networkName":"Base mainnet","payTo":"0x0395c1bed0b83ad6f0329b4132191934733e637c","maxTimeoutSeconds":300,"flow":"Call without payment → 402 with a PAYMENT-REQUIRED header (base64 JSON challenge) → sign an EIP-3009 USDC authorization → retry with a PAYMENT-SIGNATURE header → 200 plus a PAYMENT-RESPONSE header (settlement tx). Failed requests (4xx/5xx) are never charged."},"x-payment-info":{"price":{"currency":"USD","mode":"fixed","amount":"0.35"},"protocols":[{"x402":{"scheme":"exact","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","payTo":"0x0395c1bed0b83ad6f0329b4132191934733e637c","maxTimeoutSeconds":300}}]},"x-intents":["workout_generator","fitness_coaching","hyrox_programming","custom_wod"]}},"/tools/substitute":{"post":{"tags":["paid"],"summary":"Exercise substitution for an injury ($0.02 USDC on Base)","description":"Exercise substitution for injuries, $0.02 USDC on Base: give a movement (e.g. barbell back squat) and an injury or limitation (e.g. knee pain, shoulder impingement) and get 3-5 safe alternative exercises with prescriptions, coaching cues and stop signs. Physio-informed, not medical advice. Gym, home gym, CrossFit, functional fitness.","operationId":"tools_substitute_tools_substitute_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubstituteRequest","properties":{"movement":{"type":"string","maxLength":80,"minLength":2,"description":"e.g. \"Barbell Overhead Press\""},"limitation":{"type":"string","maxLength":300,"minLength":2,"description":"Injury or limitation, e.g. \"left shoulder impingement\""},"equipment":{"items":{"type":"string"},"type":"array","maxItems":20,"description":"Available equipment; empty means \"assume a full gym\""}},"type":"object","required":["movement","limitation"]},"example":{"movement":"Barbell Back Squat","limitation":"patellar tendinopathy, pain in deep knee flexion","equipment":["dumbbells","box","bands"]}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{},"example":{"movement":"Barbell Back Squat","limitation":"patellar tendinopathy","why_avoid":"Deep knee flexion under axial load peaks patellar tendon stress.","alternatives":[{"name":"Banded Spanish Squat Isometric","why":"Loads the tendon isometrically","prescription":"5 × 45 s @ RPE 6-7"},{"name":"DB Box Squat (high box)","why":"Limits knee flexion depth","prescription":"4 × 8 @ RPE 7"}],"coaching_cues":["Vertical shin","Pain ≤ 3/10 during and after"],"stop_signs":["Sharp pain below the kneecap"],"disclaimer":"Not medical advice."}}}},"502":{"description":"Generation failed; the payment was not settled"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"402":{"description":"Payment required. The PAYMENT-REQUIRED response header holds the base64-encoded x402 challenge (x402Version 2, accepts[], resource, extensions.bazaar).","headers":{"PAYMENT-REQUIRED":{"schema":{"type":"string"},"description":"base64 JSON x402 challenge"}}}},"x-x402":{"scheme":"exact","price":"$0.02","currency":"USDC","amount":"20000","decimals":6,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","network":"eip155:8453","networkName":"Base mainnet","payTo":"0x0395c1bed0b83ad6f0329b4132191934733e637c","maxTimeoutSeconds":90,"flow":"Call without payment → 402 with a PAYMENT-REQUIRED header (base64 JSON challenge) → sign an EIP-3009 USDC authorization → retry with a PAYMENT-SIGNATURE header → 200 plus a PAYMENT-RESPONSE header (settlement tx). Failed requests (4xx/5xx) are never charged."},"x-payment-info":{"price":{"currency":"USD","mode":"fixed","amount":"0.02"},"protocols":[{"x402":{"scheme":"exact","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","payTo":"0x0395c1bed0b83ad6f0329b4132191934733e637c","maxTimeoutSeconds":90}}]},"x-intents":["workout_generator","fitness_coaching","hyrox_programming","custom_wod"]}},"/tools/race-pace":{"get":{"tags":["paid"],"summary":"Race pace plan for HYROX-format races ($0.01 USDC on Base)","description":"Race pace calculator for HYROX-format fitness races, $0.01 USDC on Base: target finish time to splits for all 8 x 1 km runs and 8 stations (ski, sled push, sled pull, burpee broad jumps, row, farmers carry, lunges, wall balls), run pace per km, transition time, strategy and an optional 5k check. Independent; not affiliated with HYROX.","operationId":"tools_race_pace_tools_race_pace_get","parameters":[{"name":"target","in":"query","required":true,"schema":{"type":"string","title":"Target"}},{"name":"division","in":"query","required":false,"schema":{"type":"string","default":"open","title":"Division"}},{"name":"run_5k","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Run 5K"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{},"example":{"target":"1:20:00","division":"open","run_pace_per_km":"4:40","totals":{"running":"37:20","stations":"36:48","roxzone":"5:52"},"segments":[{"segment":"Run 1 (1 km)","target":"4:40","clock":"4:42"},{"segment":"SkiErg 1000 m","target":"4:48","clock":"9:52"}],"strategy":["Run 1 should feel easy: start 5-10 s/km slower than target."],"feasibility":{"verdict":"ambitious: planned run pace is close to your 5 km pace"}}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"402":{"description":"Payment required. The PAYMENT-REQUIRED response header holds the base64-encoded x402 challenge (x402Version 2, accepts[], resource, extensions.bazaar).","headers":{"PAYMENT-REQUIRED":{"schema":{"type":"string"},"description":"base64 JSON x402 challenge"}}}},"x-x402":{"scheme":"exact","price":"$0.01","currency":"USDC","amount":"10000","decimals":6,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","network":"eip155:8453","networkName":"Base mainnet","payTo":"0x0395c1bed0b83ad6f0329b4132191934733e637c","maxTimeoutSeconds":60,"flow":"Call without payment → 402 with a PAYMENT-REQUIRED header (base64 JSON challenge) → sign an EIP-3009 USDC authorization → retry with a PAYMENT-SIGNATURE header → 200 plus a PAYMENT-RESPONSE header (settlement tx). Failed requests (4xx/5xx) are never charged."},"x-payment-info":{"price":{"currency":"USD","mode":"fixed","amount":"0.01"},"protocols":[{"x402":{"scheme":"exact","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","payTo":"0x0395c1bed0b83ad6f0329b4132191934733e637c","maxTimeoutSeconds":60}}]},"x-intents":["workout_generator","fitness_coaching","hyrox_programming","custom_wod"]}},"/tools/warmup":{"get":{"tags":["paid"],"summary":"Targeted warm-up ($0.01 USDC on Base)","description":"Warm-up generator, $0.01 USDC on Base: a targeted warm-up for a session type (strength, metcon, engine, speed run, zone 2) with optional prehab for the shoulder, knee, hip, lower back, ankle or wrist. 5-20 minutes, returns structured blocks plus Markdown. Gym, CrossFit, running.","operationId":"tools_warmup_tools_warmup_get","parameters":[{"name":"session","in":"query","required":false,"schema":{"type":"string","default":"Metcon","title":"Session"}},{"name":"style","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Style"}},{"name":"minutes","in":"query","required":false,"schema":{"type":"integer","default":10,"title":"Minutes"}},{"name":"focus","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Focus"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{},"example":{"session":"Speed Run","minutes":12,"focus":["knee","lower back"],"blocks":[{"block":"General raise","minutes":3,"items":["3:00 easy jog, building gradually"]},{"block":"Prehab: knee, lower back","minutes":3,"items":["Spanish Squat Isometric (band) 3 × 30 s","Dead Bugs × 8 / side"]}],"markdown":"# Warm-Up: Speed Run (Hyrox) · 12 min\n…"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"402":{"description":"Payment required. The PAYMENT-REQUIRED response header holds the base64-encoded x402 challenge (x402Version 2, accepts[], resource, extensions.bazaar).","headers":{"PAYMENT-REQUIRED":{"schema":{"type":"string"},"description":"base64 JSON x402 challenge"}}}},"x-x402":{"scheme":"exact","price":"$0.01","currency":"USDC","amount":"10000","decimals":6,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","network":"eip155:8453","networkName":"Base mainnet","payTo":"0x0395c1bed0b83ad6f0329b4132191934733e637c","maxTimeoutSeconds":60,"flow":"Call without payment → 402 with a PAYMENT-REQUIRED header (base64 JSON challenge) → sign an EIP-3009 USDC authorization → retry with a PAYMENT-SIGNATURE header → 200 plus a PAYMENT-RESPONSE header (settlement tx). Failed requests (4xx/5xx) are never charged."},"x-payment-info":{"price":{"currency":"USD","mode":"fixed","amount":"0.01"},"protocols":[{"x402":{"scheme":"exact","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","payTo":"0x0395c1bed0b83ad6f0329b4132191934733e637c","maxTimeoutSeconds":60}}]},"x-intents":["workout_generator","fitness_coaching","hyrox_programming","custom_wod"]}},"/wod":{"get":{"tags":["paid"],"summary":"Custom rule-based workout ($0.05 USDC on Base)","operationId":"wod_wod_get","parameters":[{"name":"equipment","in":"query","required":true,"schema":{"type":"string","title":"Equipment"}},{"name":"format_type","in":"query","required":true,"schema":{"type":"string","title":"Format Type"}},{"name":"style","in":"query","required":true,"schema":{"type":"string","title":"Style"}},{"name":"seed","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Seed"}}],"responses":{"200":{"description":"Workout","content":{"application/json":{"schema":{}},"text/markdown":{"schema":{"type":"string"}}}},"400":{"description":"Invalid parameters (rejected before payment)"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"402":{"description":"Payment required. The PAYMENT-REQUIRED response header holds the base64-encoded x402 challenge (x402Version 2, accepts[], resource, extensions.bazaar).","headers":{"PAYMENT-REQUIRED":{"schema":{"type":"string"},"description":"base64 JSON x402 challenge"}}}},"x-x402":{"scheme":"exact","price":"$0.05","currency":"USDC","amount":"50000","decimals":6,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","network":"eip155:8453","networkName":"Base mainnet","payTo":"0x0395c1bed0b83ad6f0329b4132191934733e637c","maxTimeoutSeconds":120,"flow":"Call without payment → 402 with a PAYMENT-REQUIRED header (base64 JSON challenge) → sign an EIP-3009 USDC authorization → retry with a PAYMENT-SIGNATURE header → 200 plus a PAYMENT-RESPONSE header (settlement tx). Failed requests (4xx/5xx) are never charged."},"x-payment-info":{"price":{"currency":"USD","mode":"fixed","amount":"0.05"},"protocols":[{"x402":{"scheme":"exact","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","payTo":"0x0395c1bed0b83ad6f0329b4132191934733e637c","maxTimeoutSeconds":120}}]},"x-intents":["workout_generator","fitness_coaching","hyrox_programming","custom_wod"]}}},"components":{"schemas":{"CustomRequest":{"properties":{"equipment":{"anyOf":[{"items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object"}]},"type":"array"},{"type":"string"}],"title":"Equipment","description":"e.g. [\"50lb dumbbells\", \"pull-up bar\", \"resistance bands\"]"},"user_context":{"type":"string","maxLength":2000,"minLength":3,"title":"User Context"},"duration":{"type":"string","enum":["single","multi_week"],"title":"Duration","default":"single"},"weeks":{"type":"integer","maximum":8.0,"minimum":3.0,"title":"Weeks","description":"multi_week only","default":4},"sessions_per_week":{"type":"integer","maximum":6.0,"minimum":1.0,"title":"Sessions Per Week","default":3},"session_minutes":{"type":"integer","maximum":120.0,"minimum":20.0,"title":"Session Minutes","default":60}},"type":"object","required":["equipment","user_context"],"title":"CustomRequest"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"SubstituteRequest":{"properties":{"movement":{"type":"string","maxLength":80,"minLength":2,"title":"Movement","description":"e.g. \"Barbell Overhead Press\""},"limitation":{"type":"string","maxLength":300,"minLength":2,"title":"Limitation","description":"Injury or limitation, e.g. \"left shoulder impingement\""},"equipment":{"items":{"type":"string"},"type":"array","maxItems":20,"title":"Equipment","description":"Available equipment; empty means \"assume a full gym\""}},"type":"object","required":["movement","limitation"],"title":"SubstituteRequest"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}},"tags":[{"name":"paid","description":"x402-paid endpoints (USDC on Base)"},{"name":"free","description":"free daily programme"}]}