Get a trainee's weekly activity

GET/api/public/trainees/{traineeId}/weekly-activity

Day-by-day activity for the week containing the given date (workouts, cardio, nutrition logging, water, measurements, form submissions). The full cross-domain "what the trainee did" view.

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

Any date in the target week, YYYY-MM-DD. Defaults to current week.

Request examples

cURL
curl --request GET \
  --url 'https://api.coach-platform.com/api/public/trainees/<traineeId>/weekly-activity' \
  --header 'Authorization: Bearer cp_live_...'
JavaScript (fetch)
const response = await fetch('https://api.coach-platform.com/api/public/trainees/<traineeId>/weekly-activity', {
  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.