API calls from my visual studio localhost stopped suddenly to work (401) with no changes in api_token key

I have an internal project that registers deals in Pipedrive from the start of trials of our system. We are modifying the way it is called, and everything was working in a local test (running the project in C# Azure Functions on localhost), but suddenly, the same code started to give an unauthorized error 401.

The same code in production being called from azure function website is running ok with the same api_key.