API call to list collections

New to Webflow and I am trying to get a list of collections using Python but I keep getting this error:

{“msg”:“Unknown Error Occurred”,“code”:400,“name”:“UnknownError”,“path”:“/sites/SITE_ID/collections”,“err”:“UnknownError: Unknown Error Occurred”}

I’ve tried a couple of solutions but not sure how to get the API to work. I redid the API and enabled permissions. Can anyone help me out with this?

Hi Shea, are you looking to hire a programmer to help you with your implementation?

If not, everything you need is in the API docs. I’d recommend that you double check your authentication, and your inputs in the API request. The documentation page has a useful testing tool so you can verify your token and call structure work.

From there I usually use something like Postman to verify the full request-response chain including the auth approach.

Then you can more easily implement that in your python code.

1 Like

Hi there Shea,

As @memetican mentioned - you can try an API call from the docs. Here’s a quick GIF showing how you can do that.

Large GIF (1670x952)

1 Like

@memetican & @victoriaplummer, thank you both! This made me realize that I also need to migrate to API V2.