How do I send every workout to my own server with a webhook?
In Cooldown, open Connections → Webhook, enter an Endpoint URL that starts with https://, and send workouts with Send to webhook or an upload rule. Cooldown POSTs each workout as a TCX file with X-Workout-Name, X-Workout-Id and X-Workout-Start headers.
Set it up
- Open Connections → Webhook.
- Enter your Endpoint URL. It must start with https://. Ready to send appears under it when the address is usable.
- Send a workout from its share button with Send to webhook, or add an Export Rule in Settings → Automations.
What your server receives
Each workout is a POST of a TCX file, with three headers:
- X-Workout-Name
- X-Workout-Id
- X-Workout-Start
The file carries the route, heart rate, cadence, power and your corrected distance.
Security
There is no authentication on the request, so use a hard-to-guess URL and treat it as a secret. To stop sending, clear the field.
Common questions
What is it good for?
Feeding a personal database, a home automation, a spreadsheet script or your own training log.
Does it send my history?
It sends what you send: single workouts, a selection, or everything through Settings → Data Management → Export workouts.
Can I use it with a service Cooldown doesn't support?
If that service can accept a TCX upload at a URL, yes. Otherwise export files: Get Apple Watch workouts into TrainingPeaks or other sites.