The Hub is now in read-only mode as we make improvements to the Hub experience. More information is available here.
04-08-2024 03:01 PM
i tried it by creating a Webhook using a python script but it was unable to verify the callback url for the webhook..
I've gotten the webhook working through Zapier for the purpose of the app, but I'm worried that when I apply to have the app recognised by strava so more people can join it that they wont accept it if it doesn't use a coded in webhook..
Solved! Go to Solution.
04-11-2024 04:22 AM
I'm just going to merge everything into one reply rather than reply to each of your updates...
1. Follow the guide for setting up webhooks @ https://developers.strava.com/docs/webhooks/. The example cURL requests you've shared don't match what is shown on that page (e.g. you don't need to pass an auth token in the header, the 'object_type' and 'aspect_type' fields are not valid fields for a push subscription request, etc...)
2. The error message you are receiving is fairly generic and says the callback_url is not verifiable. It means that you aren't following all of the required steps to do the handshake with Strava to set up your callback. There are only 2 steps which need to be followed:
If everything went well, you will get a subscription ID returned to the cURL request in step 1. Otherwise you'll get an error message. The error message "field" paramter will tell you which part went wrong, and "code" will tell you what was wrong with it, though it may be a bit vague.
I can't tell you exactly how to code your webhook endpoint because that will depend on the programming language you're using. It seems like webhook.site has its own scripting language for custom actions so you'd have to figure out how to use that to respond appropriately.
04-11-2024 04:22 AM
I'm just going to merge everything into one reply rather than reply to each of your updates...
1. Follow the guide for setting up webhooks @ https://developers.strava.com/docs/webhooks/. The example cURL requests you've shared don't match what is shown on that page (e.g. you don't need to pass an auth token in the header, the 'object_type' and 'aspect_type' fields are not valid fields for a push subscription request, etc...)
2. The error message you are receiving is fairly generic and says the callback_url is not verifiable. It means that you aren't following all of the required steps to do the handshake with Strava to set up your callback. There are only 2 steps which need to be followed:
If everything went well, you will get a subscription ID returned to the cURL request in step 1. Otherwise you'll get an error message. The error message "field" paramter will tell you which part went wrong, and "code" will tell you what was wrong with it, though it may be a bit vague.
I can't tell you exactly how to code your webhook endpoint because that will depend on the programming language you're using. It seems like webhook.site has its own scripting language for custom actions so you'd have to figure out how to use that to respond appropriately.
04-09-2024 12:50 AM - edited 04-09-2024 12:58 AM
This is the code i'm using
curl --location 'https://www.strava.com/api/v3/push_subscriptions' \
--header 'Authorization: Bearer xxxxxxxxxxxx' \
--header 'Content-Type: application/json' \
--data '{
"client_id": "124236",
"client_secret": "xxxxxxxxxxxxxxxxxxxx",
"callback_url": "https://webhook.site/f8c1dd6f-3315-404c-a1d4-5f69dadffc27",
"verify_token": "Strava",
"aspect_type": "create",
"object_type": "activity"
}'
04-08-2024 03:02 PM
04-08-2024 03:02 PM - edited 04-09-2024 12:59 AM
Welcome to the Community - here is your guide to help you get started!