"Unauthorized" on API calls with code that's worked before

I was hoping to download the last few months of Spend data, but using the new API interface, I’m getting an ‘unauthorized’ message, even though under my account it’s still showing itself as “available” online. This code has worked previously for API calls and I believe that I’m still licensed to use the data.

Hi @s.knight I checked your account and your permissions have access to this product. Have you followed the API instructions for the new interface?

It may be that the API key is not being saved after it is generated: Tool: Automated Data Access via API with Python - #4 by Ryan_Kruse_MN_State

Ah, thank you! I generated an API key but did not click “Save”, that’s my mistake. Appreciate your attention to this and your prompt response, thanks!

1 Like