The Hub is now in read-only mode as we make improvements to the Hub experience. More information is available here.
07-12-2024 08:16 PM
I am following the steps of the getting started guide: https://developers.strava.com/docs/getting-started/#oauth
I am on step 11, attempting to make an authentication request in Postman, equivalent to the one shown in the guide. When I make the request in Postman (see image below), I get a response of a Strava page saying 'Sorry, this one stays red.'
I also tried using the end 'api/v3/oauth/token' endpoint from this example cURL request in the authentication documentation: https://developers.strava.com/docs/authentication/#:~:text=always%20be%20%22authorization_code%22.-,... . But I ran into the error described in this post: https://communityhub.strava.com/t5/developer-discussions/api-v3-auth-error/m-p/25187 which indicates that 'api/v3/oauth/token' isn't even a valid endpoint.
What am I doing wrong?
Solved! Go to Solution.
07-13-2024 02:16 AM
The documentation for Token Exchange is correct in the examples with the URL https://www.strava.com/api/v3/oauth/token but wrong where it says introductory you should POST to https://www.strava.com/oauth/token. https://www.strava.com/oauth is for user interactions only, API calls must use the /api/v3 path. I believe the solution in the other thread didn't work because of the URL changes but because the poster after some tries finally provided the correct "code" that was created by the previous authorizing.
07-13-2024 02:16 AM
The documentation for Token Exchange is correct in the examples with the URL https://www.strava.com/api/v3/oauth/token but wrong where it says introductory you should POST to https://www.strava.com/oauth/token. https://www.strava.com/oauth is for user interactions only, API calls must use the /api/v3 path. I believe the solution in the other thread didn't work because of the URL changes but because the poster after some tries finally provided the correct "code" that was created by the previous authorizing.
Welcome to the Community - here is your guide to help you get started!