Skip to main content
Answer

Authorization Error - activity:read_permission

  • June 10, 2024
  • 4 replies
  • 936 views

Forum|alt.badge.img+4

I receive this response when trying to access the activities endpoint for v3.  I'm able to use the athlete endpoint and get information.  I used the activity:read_all scope when authorizing my own account.

{
"message": "Authorization Error",
"errors": [
{
"resource": "AccessToken",
"field": "activity:read_permission",
"code": "missing"
}
]
}

Best answer by Jan_Mantau

Did you actually use the access token you got from when you authorized your account? It's not the same as the one in the api settings page.

4 replies

Jan_Mantau
Superuser
Forum|alt.badge.img+27
  • Superuser
  • Answer
  • June 10, 2024

Did you actually use the access token you got from when you authorized your account? It's not the same as the one in the api settings page.


Forum|alt.badge.img+4
  • Author
  • Hub Rookie
  • June 10, 2024

Thank You - Yes, I was not using the correct refresh token to get my access token.  I was using the API refresh token and then also using it's access token.  I authorized and received the right tokens to be able to move forward.


  • Hub Starter
  • September 18, 2024

Hi, can you elaborate on this? After I authorize I get brought to the redirect URL I provide. My understanding is that within that URL, after code= my authorization code is provided. How do I then go about turning that code into the appropriate access token?


Jan_Mantau
Superuser
Forum|alt.badge.img+27
  • Superuser
  • September 18, 2024

@kwyx That is explained in https://developers.strava.com/docs/getting-started/ beginning from point 10.