{"service":"raceform.dev","version":"1.0.0","unit_system":"imperial","access":"free","definitions":{"longitudinal":"Longitudinal means the long view: the same person across months and years, not one workout by itself. The charts in this section are that view, from 2021 through 2026.","efficiency_factor":"EF means efficiency factor: how much pace you get from each heartbeat. It is your speed divided by your heart rate. Higher is better. On this graph, 1.06 in 2023 became 1.53 later, so the same heart rate now goes with a faster pace.","decoupling":"Decoupling is the change from the first half of a race to the second. It is how much your heart rate rises, or your pace slows, once you are already tired. Under about 5% means you held together. Over 5% means you faded late. A negative number means the second half was stronger.","hybrid_acwr":"The weekly load ratio compares the last 7 days of running, cycling, and strength with a normal week, the average of the last 28 days. About 0.8 to 1.3 is a usual range. Above about 1.35 means this week is a big jump.","vdot":"The fitness score turns a best half marathon into an estimated marathon pace. It checks speed. It does not, by itself, say that pace will hold for 26 miles."},"endpoints":[{"method":"GET","path":"/","content_type":"text/html; charset=utf-8","description":"Race-day prep landing page. HEAD / returns 200. Accept: application/json returns agent context. Accept: text/markdown returns the llms.txt guide.","params":[],"response_fields":["html"]},{"method":"GET","path":"/sitemap.xml","content_type":"application/xml; charset=utf-8","description":"Sitemap of public GET routes.","params":[],"response_fields":["urlset"]},{"method":"GET","path":"/llms.txt","content_type":"text/plain; charset=utf-8","description":"Concise LLM-readable guide to race-day prep, the plan API, and the sample-log endpoints.","params":[],"response_fields":["markdown_text"]},{"method":"POST","path":"/api/plan","content_type":"application/json","description":"Stateless race-day prep plan. No session or login. distance is 5K, 10K, half, or marathon. experience is first, some, or experienced. Provide race_date (YYYY-MM-DD) or timing. goal and notes are optional. Unknown fields return 400.","request_body":{"distance":"5K","race_date":"2026-12-20","timing":"6 weeks","experience":"first","goal":"Finish calm","notes":"First start line."},"response_fields":["ok","stateless","distance","distance_label","distance_mi","experience","race_date","timing","days_out","headline","summary","race_morning","pacing","fueling","gear","between_now_and_race_day","skip"]},{"method":"GET","path":"/api/schema","content_type":"application/json","description":"Machine-readable catalog of all endpoints, parameters, and response fields.","params":[],"response_fields":["service","version","unit_system","definitions","endpoints"]},{"method":"GET","path":"/api/agent-context","content_type":"application/json","description":"Single-call compact JSON snapshot combining plain-English definitions, athlete summary, benchmarks, durability/ACWR, guardrails, and feedback count.","params":[{"name":"session_id","in":"query","required":false,"type":"string"}],"response_fields":["unit_system","session_id","definitions","athlete_summary","benchmark_races","durability_and_load","next_week_guardrails","recent_feedback_count"]},{"method":"GET","path":"/api/health","content_type":"application/json","description":"Server health and default dataset summary.","params":[],"response_fields":["status","service","version","default_dataset","active_sessions"]},{"method":"GET","path":"/api/audit","content_type":"application/json","description":"Longitudinal Run + Ride + Strength audit in miles, long runs (>=12 mi), benchmarks, and EF curve.","params":[{"name":"session_id","in":"query","required":false,"type":"string"}],"response_fields":["dataset_meta","yearly_volume","monthly_volume","long_runs","benchmark_races","efficiency_and_pace_trends","inflection_points"]},{"method":"POST","path":"/api/upload","content_type":"application/json","description":"Upload Strava activities.csv or JSON into an isolated session and compute instant audit + durability.","params":[{"name":"session_id","in":"query","required":false,"type":"string"}],"request_body":"multipart/form-data (file), text/csv, or application/json","response_fields":["ok","session_id","imported_count","skipped_count","audit","durability"]},{"method":"GET","path":"/api/pro/durability","content_type":"application/json","description":"Speed-vs-Durability gap, cardiac decoupling comparisons, 26-week Hybrid ACWR, and Marathon Readiness Score.","params":[{"name":"session_id","in":"query","required":false,"type":"string"}],"response_fields":["tier","price_label","unit_system","speed_vs_durability_gap","hybrid_acwr","marathon_readiness"]},{"method":"POST","path":"/api/pro/pacing-plan","content_type":"application/json","description":"Generate mile-by-mile negative-split pacing plan, HR ceiling guardrails, and Mile-20 fade warnings.","request_body":{"target_time":"2:59:30","current_half":"1:27:56","max_hr":186,"threshold_hr":168},"response_fields":["target_time","target_pace_per_mi","vdot","half_splits","hr_guardrails","checkpoints","mile_splits","decoupling_risk_warnings"]},{"method":"GET","path":"/api/pro/coach-brief","content_type":"application/json","description":"Ready-to-send Coach Weekly Triage Brief in Markdown and structured JSON.","params":[{"name":"session_id","in":"query","required":false,"type":"string"},{"name":"target_time","in":"query","required":false,"type":"string"},{"name":"current_half","in":"query","required":false,"type":"string"}],"response_fields":["generated_at","athlete","week_ending","summary","hybrid_strain","next_week_guardrails","markdown"]},{"method":"POST","path":"/api/feedback","content_type":"application/json","description":"Submit beta user feedback (returns 201).","request_body":{"category":"UX","message":"Required feedback text","email_or_handle":"@runner","context":{}},"response_fields":["ok","id","created_at","total_feedback"]},{"method":"GET","path":"/api/feedback","content_type":"application/json","description":"List recent submitted feedback entries (newest first, max 100).","params":[],"response_fields":["count","items"]}]}