Strava Integration
Strava is the dominant social network for runners and cyclists. The vitalera Strava integration covers activities, HR/cadence/power/altitude streams, and live push notifications via Strava's webhook subscription system.
Data types
| Category | Highlights |
|---|---|
| Activities | Type, distance, duration, elevation gain, calories |
| Streams | Time-indexed arrays: HR, cadence, altitude, velocity, power, grade |
| Athlete | Profile, weight, FTP (where set) |
Connection
curl -X POST https://api.vitalera.io/api/connected-accounts/strava/oauth/initiate/ \
-H "Authorization: Bearer <user_token>"
Scopes requested: activity:read_all,profile:read_all.
Webhooks
Strava webhooks use a hub.challenge handshake when the subscription is created — vitalera handles the verification automatically. After subscription, Strava posts create, update, and delete events for activities and athlete deauthorisation.