NauTritivadevelopers
Endpoints

Calculate aggregated nutrients for a list of foods + grams

POST/v1/meal

Parâmetros

itemsarraybodyobrigatório

Respostas

200Totals per nutrient, plus `incompleteFields` listing which items had no value for a given nutrient (missing data is never silently treated as zero).
404One or more foodId not found
curl -X POST "https://nautritiva.vercel.app/v1/meal" \
  -H "Authorization: Bearer $NTV_KEY" \
  -H "Content-Type: application/json" \
  -d '{"items":[{"foodId":"00000000-0000-0000-0000-000000000000","grams":250}]}'
OpenAPI JSON →