{“msg”:“No API version specified on request”,“code”:400,“name”:“InvalidAPIVersion”,“path”:“/info”,“err”:“InvalidAPIVersion: No API version specified on request”}
So, what should be the right HHTP request to access a project or site?
Have you ever programmed api calls before? If not, I would recommend codeacademy has a section on this as well as Brad Traversy has some good YouTube tutorials. Just for some orientation, there are three ways to do it:
Also, feel free to ask any other questions here, no matter how dumb. I remember when I was first learning api programming I had so many questions and I didn’t even know the right terminology. I felt like every resource I looked at assumed all this crap I didn’t know.
The API cannot be directly used in client-side javascript as we do not support CORS headers which would be required to read the response. In order to use the API in client-side javascript, you would have to publicly expose your API key, which would let anyone modify your site!
As for the original error you were seeing, make sure you include the api version parameter in the URL and then it should work: https://api.webflow.com/info?access_token=947cfffbd-----------------&api_version=1.0.0 (making sure to update the access_token to the correct value)
@jhiggins I’m trying to work through the steps you specify here. Is step 2 another api call? New to the api world. Can you also please explain what step 2 can do?