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
| Name | Type | Description |
|---|---|---|
traineeIdrequired | string |
Query parameters
| Name | Type | Description |
|---|---|---|
date | string | Any date in the target week, YYYY-MM-DD. Defaults to current week. |
Request examples
curl --request GET \
--url 'https://api.coach-platform.com/api/public/trainees/<traineeId>/weekly-activity' \
--header 'Authorization: Bearer cp_live_...'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
{
"data": {}
}Response fields (1)
| Name | Type | Description |
|---|---|---|
data | object |
More Trainees endpoints
This page is also available as Markdown. Browse it in the interactive explorer or download the OpenAPI spec.