This guide follows up a previous post, Strava API and Next.js. We will be adding webhooks to enable our Next.js app to subscribe to events that occur within Strava
Creating a new webhook subscription is a two-step process:
Create a subscription via a curl request.
curl -X POST https://api.strava.com/api/v3/push_subscriptions \
-F client_id=CLIENT_ID \
-F client_secret=CLIENT_SECRET \
-F 'callback_url=CALLBACK_URL' \
-F 'verify_token=STRAVA'