Skip to content

Injury Risk API

Score training readiness risk and return preventive actions before overreaching becomes a performance or availability issue.

Endpoint

  • GET /api/v1/fitness/injury-risk
  • POST /api/v1/fitness/injury-risk/post

Parameters

Name Type Required In Description
training_days integer (0-7) Yes Query/Body Number of training days per week.
sleep_hours number (0-16) Yes Query/Body Average sleep duration.
muscle_soreness number (0-10) Yes Query/Body Soreness score.
previous_injury boolean-like Yes Query/Body true/false, 1/0, yes/no.
lang string No Query Response language (en,es,de,fr,pt,ja,hi,ar).

Why Use This Endpoint

  • Detect rising injury risk early in training cycles.
  • Translate recovery signals into preventive interventions.
  • Automate escalation flags for coaching and care teams.

Get Started

Request Example

curl -X GET "https://api.hefitapi.com/api/v1/fitness/injury-risk?training_days=6&sleep_hours=6.1&muscle_soreness=7.2&previous_injury=true&lang=en" \
  -H "X-API-Key: YOUR_API_KEY"
curl -X POST "https://api.hefitapi.com/api/v1/fitness/injury-risk/post?lang=en" \
  -H "Content-Type: application/json" \
  -H "X-API-Key: YOUR_API_KEY" \
  -d '{"training_days":5,"sleep_hours":7.0,"muscle_soreness":4.8,"previous_injury":false}'

Response Example

Info

The response example below is for demonstration purposes only. Make a live request to this endpoint to receive the full, real-time, and potentially richer JSON structure.

{
  "risk_score": 69,
  "risk_level": "moderate",
  "risk_label": "Moderate",
  "preventive_focus": "Prioritize mobility and controlled volume progression.",
  "mobility_advice": [
    "Add 10-15 minutes of daily mobility prep.",
    "Reduce sudden intensity jumps."
  ],
  "daily_readiness_protocol": {
    "sleep_gate": "minimum 7h",
    "soreness_check": "keep below 6/10 for heavy sessions"
  },
  "return_to_load_plan": ["Use progressive overload in small weekly steps"],
  "session_modifiers": ["Swap one hard day for low-impact conditioning"],
  "escalation_flags": ["High training frequency"],
  "component_load": {
    "training_load_pressure": 30.0,
    "sleep_pressure": 15.8,
    "soreness_pressure": 21.6,
    "injury_history_pressure": 0.0
  },
  "inputs": {
    "training_days": 6,
    "sleep_hours": 6.1,
    "muscle_soreness": 7.2,
    "previous_injury": false
  },
  "summary": "Moderate risk profile; adjust volume and recovery cadence.",
  "language": "en",
  "_enterprise": {
    "client": "Acme Health",
    "plan": "pro",
    "request_id": "cb8af45a1c56e3c8",
    "quota": 120,
    "usage_tracking": true
  },
  "_api_metadata_": {
    "endpoint_name": "fitness_injury_risk",
    "response_language": "en"
  }
}

Product Positioning

Strong fit for team training apps, rehab-adjacent coaching systems, and enterprise readiness monitoring.

Note

previous_injury accepts bool-like values (true/false, 1/0, yes/no).