Need help with your Strava integration? Pop into our Discord if you have questions or want to discover how Open Wearables can solve your problems.
Overview
Strava provides access to activity/workout data through their API. The integration supports real-time webhook notifications for new activities as well as historical activity data via polling. Each Open Wearables user can connect their own Strava account. Strava’s Standard Tier allows up to 10 connected athletes — upgradeable directly from your API Settings Dashboard without formal review. For more than 10 athletes, apply for Extended Access Tier.Supported data types
Strava is an activity-focused platform — it does not provide continuous health monitoring data like sleep, HRV, or daily summaries.
Workout segments are stored on
workout_details.segments as lap-kind entries in the same shape as FIT-parsed segments (e.g. Garmin): an activity’s manual/device laps when the athlete recorded more than one (intervals), otherwise Strava’s auto per-kilometre splits_metric. Each segment carries distance_meters, elapsed_seconds, avg_speed and avg_heart_rate; laps additionally carry max_heart_rate, avg_cadence, avg_power and total_ascent. Segments come from the DetailedActivity payload, so they populate for webhook-ingested activities — the summary list used for backfills carries no laps or splits. Request them on workout endpoints with ?include=segments.
Data delivery
Developer tiers
Self-upgrade to Standard Tier (up to 10 athletes) directly from your API Settings Dashboard. For Extended Access, submit your app for review through the same dashboard.
What you need by the end
- App credentials: Client ID + Client Secret
- OAuth scopes configured
- Webhook subscription created (so Strava sends activity events to your server)
Prerequisites
- A Strava account (active subscription required for Standard Tier API access; Extended Access Tier is exempt)
Application walkthrough
1
Create a Strava API Application
Log in to your Strava account and go to:Fill in the application form:
- Application Name: Your app name
- Category: Choose the category that best describes your app
- Website: Your app’s website URL
- Authorization Callback Domain:
localhostfor local development, or your production domain (e.g.yourdomain.com)
- Client ID
- Client Secret
2
Configure credentials in Open Wearables
Add the following to your Configuration details:
.env file:Strava signs its webhook events with a key it does not share, so Open Wearables cannot check the signature. Instead, the callback URL carries a secret derived from
SECRET_KEY, which authenticates each event. In addition, before deleting an activity or disconnecting an athlete, Open Wearables confirms the change in the Strava API.3
Create a webhook subscription
To receive real-time activity notifications, Strava needs a webhook subscription pointing at your Open Wearables instance. Your server must be publicly accessible over HTTPS. For local development, use a tunneling tool like ngrok.In your Open Wearables dashboard, go to Settings → Providers, find Strava, and switch its live sync mode from Periodic pull to Webhook. Open Wearables registers the subscription in the background with this callback URL:The callback token is derived from
SECRET_KEY and is not shown anywhere. Strava sends a GET handshake to that URL; Open Wearables checks the token in the path and the hub.verify_token parameter, and echoes back hub.challenge to confirm the subscription. Requests without the token, or with a wrong one, are rejected with 401.After a new SECRET_KEY or API_BASE_URL, register the subscription again with POST /api/v1/providers/strava/webhooks/subscriptions (see provider webhook subscriptions). Strava allows only one subscription per application and its callback URL cannot be changed, so Open Wearables deletes the old subscription and creates a new one; for Strava, the callback_url parameter is ignored. Instances upgrading from a version without the token do this once on their own at startup.4
Verify the integration
Once everything is configured:
- Start your Open Wearables instance
- Connect a Strava account through the OAuth flow
- Create or record an activity on Strava
- The webhook should deliver the event and Open Wearables will fetch and store the full activity data
OAuth Scopes Reference
The default scope
activity:read_all,profile:read_all is recommended for full activity data access.
Next Steps
API Reference
Explore the Open Wearables API endpoints.
Architecture
Understand the overall system architecture.
Support
Need Help?
- Join our Discord and ask a question.
- Check GitHub Discussions.
- Check the Strava API Documentation.
- Check the Strava Webhook Documentation.