[SOLVED] API access denied 403/422

Hi,

I’m trying to build my own dashboard for learning a new skill and I can’t get my API to work. I am using make.com to map in airtable.com, I had a working poc using strava data as my first assignment.

Wanting to access intervals data I used my API from the settings page and I regenerated it twice to be sure

  • I checked spelling (reading about prior issues) had chatgpt analyse and correct all my errors
  • I am now using a basic http request, like proposed in [SOLVED] API Access denied 403
  • still no data to map to

anyone have an idea why it’s still denied? Any help is greatly appreciated. I’m just a nerd, standing in front of some data, asking it to love me back.

Thanks!


Looks like your userid is missing. I use this url for activities

https://intervals.icu/api/v1/athlete/${credentials.userID}/activities

You did insert your athleteID here?

image

Hi, thanks for your help.
I changed it, my next hurdle is now an error 422 apparently. Does that ring a bell for you?

Should the $ be before the id? And should I protect my athlete id here on the forum?

When pasted in the browser I get
{“status”:422,“error”:“Required request parameter ‘oldest’ for method parameter type String is not present”}

thanks again!

Sorry, copied the url from my script. :slight_smile: This is a JavaScript variable with a string in it. The final url looks like this without $

https://intervals.icu/api/v1/athlete/i123456/activities?oldest=2025-03-17

You find your athlete id in the settings next to your API key.
I think you have to add the oldest parameter for this end point additionally. I have added it as an example to the url

Oh wait, I think with that I’m one step further, at least I seem to have access now, yay. Not just making the data bend to my wishes hehehe

Thanks!