MND API¶
Return macro nutrient distribution percentages tuned by activity level and physique goal.
Endpoint¶
GET /api/v1/mndPOST /api/v1/mnd/post
Parameters¶
| Name | Type | Required | In | Description |
|---|---|---|---|---|
activity_level | string | Yes | Query/Body | sedentary,moderately_active,very_active. |
body_composition_goal | string | Yes | Query/Body | weight_loss,maintenance,muscle_gain. |
dietary_preferences | string | Yes | Query/Body | Free-text preference context. |
lang | string | No | Query | Response language (en,es,de,fr,pt,ja,hi,ar). |
Why Use This Endpoint¶
- Generate immediate macro split recommendation without long intake forms.
- Adapt split strategy to output and physique objective.
- Attach plan and monitoring notes for downstream UX.
Request Example¶
curl -X GET "https://api.hefitapi.com/api/v1/mnd?activity_level=moderately_active&body_composition_goal=weight_loss&dietary_preferences=high%20protein&lang=en" \
-H "X-API-Key: YOUR_API_KEY"
curl -X POST "https://api.hefitapi.com/api/v1/mnd/post?lang=en" \
-H "Content-Type: application/json" \
-H "X-API-Key: YOUR_API_KEY" \
-d '{"activity_level":"very_active","body_composition_goal":"muscle_gain","dietary_preferences":"balanced"}'
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.
{
"carbohydrates": "45.0%",
"proteins": "30.0%",
"fats": "25.0%",
"macro_split_percent": {
"carbohydrates": 45.0,
"proteins": 30.0,
"fats": 25.0
},
"activity_level": "moderately_active",
"body_composition_goal": "weight_loss",
"dietary_preferences": "high protein",
"macro_strategy_band": "balanced",
"macro_strategy_label": "Balanced",
"risk_signal": "Macro split is suitable for broad adherence.",
"action_plan": ["Track response and adjust based on trend"],
"monitoring_plan": "Review progress weekly and tune if needed.",
"language": "en",
"_enterprise": {
"client": "Acme Health",
"plan": "pro",
"request_id": "f1e48e4b4d3d6a9a",
"quota": 120,
"usage_tracking": true
},
"_api_metadata_": {
"endpoint_name": "mnd",
"response_language": "en"
}
}
Product Positioning¶
A lightweight macro planning endpoint for onboarding, coaching flows, and program personalization.
Note
activity_level and body_composition_goal are strict enums; invalid values return HTTP 400.
Recommended Endpoints¶
GET /api/v1/bmi- Bmi APIGET /api/v1/tdee- Tdee APIGET /api/v1/bmr- Bmr APIGET /api/v1/protein-calculator- Protein Calculator APIGET /api/v1/fitness/heart-rate-zones- Heart Rate Zones APIGET /api/v1/bodyfat- Bodyfat API