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

Path parameters
NameTypeDescription
traineeIdrequiredstring

Query parameters

Query parameters
NameTypeDescription
datestring

The day to fetch, YYYY-MM-DD. Defaults to today (Israel time).

Request examples

cURL
curl --request GET \
  --url 'https://api.coach-platform.com/api/public/trainees/<traineeId>/nutrition-log' \
  --header 'Authorization: Bearer cp_live_...'
JavaScript (fetch)
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

Example body (application/json)
{
  "data": {}
}
Response fields (1)
Response fields
NameTypeDescription
dataobject

This page is also available as Markdown. Browse it in the interactive explorer or download the OpenAPI spec.