Skip to main content

Relatively new to this, so hopefully an easy mistake to fix:

 

I am trying to set up an API connection so I can fetch my own data from Strava and import it to Excel. I am following the usual set-up as described here : https://developers.strava.com/docs/getting-started/#oauth

Although I have tried the final authorization time and time again, it keeps saying my acces token is invalid. I have followed the steps multiple times. The token is not expired either, but it keeps giving me errors. I have checked step C4 and C5 in Postman. That does not give me errors. But when attempting D10/D11, I get either 404 errors (although im sure my website is correct) or 401 errors. 

I also notice that my acces token in step C4/C5 differs from the one

Any idea’s on how to solve this? 

The access token on your API dashboard is a token with only a read scope available. It is completely separate from the token you get from following the steps in section D.

You need to follow the steps in section D and request the correct scope(s) needed for the API calls you plan to use. Most likely these would be read_all,activity:read_all for the purpose you described (scopes are listed here - https://developers.strava.com/docs/authentication/#detailsaboutrequestingaccess). Once you have an access token from step D11, use that token for all of your API calls. Ignore the one in the API dashboard.