Cooldown app icon Cooldown

How do I send every workout to my own server with a webhook?

Updated · About Cooldown for iPhone

Short answer

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

  1. Open Connections → Webhook.
  2. Enter your Endpoint URL. It must start with https://. Ready to send appears under it when the address is usable.
  3. 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.

Cooldown is an independent app that reads and edits your own Apple Health data on your behalf. It is not affiliated with, endorsed by, or sponsored by Apple, Strava, Garmin, Suunto, Peloton, Instagram, intervals.icu, or Runalyze. Apple Health is a trademark of Apple Inc. Strava is a trademark of Strava, Inc. Garmin is a trademark of Garmin Ltd. Peloton is a trademark of Peloton Interactive, Inc. Instagram is a trademark of Meta Platforms, Inc. Other names belong to their owners and are used only to say what Cooldown works with or how it differs.