Facebook Pixel
Fit'DistanceDocumentation
Open the app

Activity

1 route

GET /coaching-timeline

Coaching phases of each student (cutting, bulking…). A deleted phase leaves no tombstone: resync the student's phases when one is missing. include_deleted has no effect.

  • Scope activity:read
  • 1 credit
  • Read
  • Stable

Parameters

NameTypeDescription
limitqueryinteger1–200, default 50
cursorquerystringOpaque cursor: next_cursor of the previous page.
sincequerydate-timeISO 8601. Returns the objects with updated_at >= since.
include_deletedquerybooleandefault false
student_idqueryinteger≥ 1
curl "https://api.fitdistance.io/api/partner/v1/coaching-timeline?limit=50" \
  -H "Authorization: Bearer fd_live_xxxxxxxx"
200 · a page of CoachingPhase
{
  "data": [
    {
      "id": 4821,
      "student_id": 4821,
      "coach_id": 4821,
      "phase": "cutting",
      "start_date": "2026-10-24",
      "end_date": "2026-10-24",
      "description": "string",
      "color": "string",
      "order": 1,
      "is_active": true,
      "updated_at": "2026-10-24T09:12:00Z"
    }
  ],
  "next_cursor": null,
  "has_more": false
}
403 · SCOPE_MISSING
{
  "error": {
    "name": "PARTNER_API",
    "message": "SCOPE_MISSING"
  }
}

200 · a page of CoachingPhase

NameTypeDescription
id requiredinteger
student_id requiredinteger
coach_id requiredinteger | nullThe coach who set the phase, not necessarily the student's current coach.
phase requiredstringone of cutting, bulking, maintenance, recomposition, preparation, recovery, custom
start_date requireddate
end_date requireddate
description requiredstring | null
color requiredstringHexadecimal color, for example #3f48b7.
order requiredinteger
is_active requiredboolean
updated_at requireddate-timeThe latest change of the phase.

Errors

StatusCodeWhen
400VALIDATIONInvalid parameters or body.billed
401UNAUTHORIZEDKey missing, unknown or revoked.not billed
402CREDITS_EXHAUSTEDNo credits left this month and no reserve.not billed
403SCOPE_MISSINGThe key doesn't have the required scope.not billed
403PLAN_NOT_ELIGIBLEYour plan doesn't include the API.not billed
429RATE_LIMITEDToo many calls: 10 per second, 300 per minute, 60 writes and 20 deletes per minute.not billed