Get a trainee's daily nutrition log
GET/api/public/trainees/{traineeId}/nutrition-log
What a trainee actually ate on ONE day: the food log for that date, per-meal and per-day calorie/macro totals, and the times of day the food was logged. Returns a single day, never a range, so call it once per date to build a range. Distinct from the assigned nutrition menu/plan, which is the target rather than what was eaten.
Authentication
Requires an API key, sent as Authorization: Bearer cp_live_....
API keys carry scopes. Get the catalog of scopes and webhook events lists every scope.
Path parameters
| Name | Type | Description |
|---|---|---|
traineeIdrequired | string |
Query parameters
| Name | Type | Description |
|---|---|---|
date | string | The day to fetch, YYYY-MM-DD. Defaults to today (Israel time). |
Request examples
curl --request GET \
--url 'https://api.coach-platform.com/api/public/trainees/<traineeId>/nutrition-log' \
--header 'Authorization: Bearer cp_live_...'const response = await fetch('https://api.coach-platform.com/api/public/trainees/<traineeId>/nutrition-log', {
method: 'GET',
headers: {
Authorization: 'Bearer cp_live_...',
},
});
const data = await response.json();Responses
200 OK
{
"data": {}
}Response fields (1)
| Name | Type | Description |
|---|---|---|
data | object |
More Nutrition Menus endpoints
This page is also available as Markdown. Browse it in the interactive explorer or download the OpenAPI spec.