API Quick Start & Reference
Everything your Web, Android, iOS, or wearable client needs to authenticate, log structured meals and exercise burn, and plot range dashboards on /api/v1.
Progressive integration path
Follow these four steps—every free feature works with zero server LLM calls.
Authenticate & create a token
Register a user account for short-lived JWT + refresh tokens, or issue a scoped Personal Access Token (vhl_...) for scripts and MCP.
Always send Authorization: Bearer <token>. Use Idempotency-Key on POST writes to avoid duplicates during mobile retries.
Log intake & exercise outflow (Free+)
Use POST /meals for itemized foods, POST /meals/nutrients when you already know exact macros, and POST /exercises for structured calories burned.
Zero server LLM calls on structured routes—fast, deterministic, and available on the Free tier.
Query daily totals & /dashboard charts
Call GET /dashboard with no params for month-to-date in the user's timezone, or pass month=YYYY-MM, year=YYYY, or start_date/end_date.
Returns intake, outflow, net calories, averages, category breakdowns, and body-metric trends in one JSON payload.
Quick requests by language
Base URL: https://vhealth-api.sumflowcloud.com/api/v1 · Interactive Swagger UI at /docs.
curl -X POST "https://vhealth-api.sumflowcloud.com/api/v1/meals/nutrients" \
-H "Authorization: Bearer vhl_your_token" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: 7c9e6679-7425-40de-944b-e07fc1f90ae7" \
-d '{
"label": "Whey shake + oats",
"meal_category": "breakfast",
"calories_kcal": 380,
"protein_g": 32,
"carbs_g": 42,
"fat_g": 8,
"fiber_g": 5
}'
const res = await fetch("https://vhealth-api.sumflowcloud.com/api/v1/dashboard?month=2026-11&granularity=day", {
headers: {
Authorization: `Bearer ${accessToken}`
}
});
const data = await res.json();
console.log(data.summary.totals, data.series);
import httpx
resp = httpx.post(
"https://vhealth-api.sumflowcloud.com/api/v1/exercises",
headers={"Authorization": f"Bearer {token}"},
json={
"activity_type": "cardio",
"activity_name": "running",
"duration_minutes": 30,
"distance_km": 5.0,
"calories_burned_kcal": 340
},
)
print(resp.json())