I’m currently developing an integration (tp2intervals) to sync data between TrainingPeaks and Intervals.icu. I’ve encountered an issue regarding Metrics (weight, sleep, HRV, etc.).
I have been following the TrainingPeaks Partner API documentation (API Endpoints · TrainingPeaks/PartnersAPI Wiki · GitHub), which does list some URLs for Metrics. However, these endpoints seem to be either outdated or non-functional in practice, as I’m unable to retrieve valid data from them.
Has anyone successfully implemented metrics synchronization recently? Does anyone know the correct or updated URLs to fetch health metrics from TrainingPeaks?
I’m trying to determine if I’m using the wrong endpoints or if there is a different set of requirements for accessing health data through their API.
While I can’t help you directly, just one note in terms of not mix up things, there is already a project with that name. So it might be good to give it another name:
Maybe the developer can help, though I think his project copies only workouts.
Hi @R2Tom,
I think I might not have been clear enough in my initial post. To clarify: I am not the lead developer of the tp2intervals project; I am a contributor currently implementing a specific feature to fetch and sync metric data from TP to Intervals.icu.
My goal is to ensure that these metrics (weight) are correctly mapped so that they populate the Intervals.icu fields accurately during the sync process. This is why I’m looking for more details on the API’s specific requirements for these fields.
Ah ok, then I misunderstood.
But is tp2intervals using the official API? As I remember correctly, you have to use your Cookie Token from the browser to communicate. I thought it didn‘t use the partner API.
99% sure (from previous experience) that TP will not let you read metric data, you can only write. They are very closed with their data (do not write to Google Health/Fit either). Most people recording metrics in TP are getting that from another source/app - most connect directly to intervals already (or via Google Health/Fit).
I managed to implement the weight metrics sync between TrainingPeaks and Intervals.icu.
Despite the general consensus that TP doesn’t allow metric writes/reads via standard API, I found a way through their internal consolidated metrics flow. It’s working perfectly in my dev environment.
I’ll be reaching out to the TP2Intervals maintainer to discuss merging this feature.