Fasted Training Risk API¶
Assess muscle loss risk and performance impact for fasted sessions, with strategy recommendations and fueling timing protocol.
Endpoint¶
GET /api/v1/fitness/fasted-training-riskPOST /api/v1/fitness/fasted-training-risk/post
Parameters¶
| Name | Type | Required | In | Description |
|---|---|---|---|---|
fasting_hours | number (8-24) | Yes | Query/Body | Current fasting window length. |
training_intensity | string | Yes | Query/Body | low,moderate,high,very_high. |
goal | string | Yes | Query/Body | fat_loss,muscle_gain,recomposition,maintenance,performance. |
cortisol_stress_score | number (1-10) | Yes | Query/Body | Stress score input for risk pressure. |
lang | string | No | Query | Response language (en,es,de,fr,pt,ja,hi,ar). |
Why Use This Endpoint¶
- Prevent muscle-loss outcomes in aggressive fasting workflows.
- Decide when to modify or fuel pre-session.
- Build safer fasted-training automation in coaching products.
Request Example¶
curl -X GET "https://api.hefitapi.com/api/v1/fitness/fasted-training-risk?fasting_hours=16&training_intensity=high&goal=fat_loss&cortisol_stress_score=7&lang=en" \
-H "X-API-Key: YOUR_API_KEY"
curl -X POST "https://api.hefitapi.com/api/v1/fitness/fasted-training-risk/post?lang=en" \
-H "Content-Type: application/json" \
-H "X-API-Key: YOUR_API_KEY" \
-d '{"fasting_hours":16,"training_intensity":"high","goal":"fat_loss","cortisol_stress_score":7}'
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.
{
"fasting_hours": 16.0,
"training_intensity": "high",
"training_intensity_label": "High",
"goal": "fat_loss",
"goal_label": "Fat Loss",
"cortisol_stress_score": 7.0,
"muscle_loss_risk": {
"score": 73,
"level": "high",
"level_label": "High",
"insight": "Muscle-loss risk is elevated under current fasted load."
},
"performance_impact": {
"score": 61,
"level": "moderate_impact",
"level_label": "Moderate Impact",
"insight": "Performance quality may drop in this state."
},
"strategic_recommendation": ["Reduce intensity or shorten fast before session"],
"fueling_timing_protocol": "Consider pre-session amino acids or protein.",
"component_load": {
"fasting_pressure": 17.0,
"training_intensity_pressure": 27.0,
"cortisol_pressure": 22.4,
"goal_pressure": 6.0
},
"next_review_window_days": 10,
"summary": "Current fasted setup carries elevated muscle-retention risk.",
"language": "en",
"_enterprise": {
"client": "Acme Health",
"plan": "pro",
"request_id": "95ac5f3cd6cc9f39",
"quota": 120,
"usage_tracking": true
},
"_api_metadata_": {
"endpoint_name": "fitness_fasted_training_risk",
"response_language": "en"
}
}
Positioning¶
A premium endpoint for intermittent-fasting coaches, performance apps, and recovery-aware training systems.
Note
training_intensity and goal are strict enums and normalized to underscore format.
Recommended Endpoints¶
GET /api/v1/fitness/adaptive-training-load- Adaptive Training Load APIGET /api/v1/diabetes-risk- Diabetes Risk APIGET /api/v1/fitness/injury-risk- Injury Risk APIGET /api/v1/fitness/metabolic-adaptation-risk- Metabolic Adaptation Risk APIGET /api/v1/fitness/micronutrient-risk- Micronutrient Risk APIGET /api/v1/fitness/sedentary-risk-score- Sedentary Risk Score API