V1Meals
Log a meal
Catalogue items use server-calculated energy for the supplied portion. Reuse mealId when retrying a save; the first successful write wins.
Authorization
bearer AuthorizationBearer <token>
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
curl -X POST "https://example.com/meals" \ -H "Content-Type: application/json" \ -d '{ "eatenAt": null, "items": [ { "name": "string", "grams": 1, "kcal": 0, "source": "search" } ] }'{ "mealId": "string", "totalKcal": 0, "items": 0}