Hi everyone,
Has anyone recently encountered issues making API requests to a Freshsales instance?
I'm consistently getting an "Incorrect or expired API Key" error for a query that was working perfectly just a few weeks ago. I've already tried resetting the API key, but the issue persists.
Here's what I've checked and observed:
- Previous Functionality: The exact same API request with the same authentication method was working fine a few weeks ago.
- API Key Reset: I have reset the API key for my user account, but this did not resolve the error.
- Authorization Header & Encoding:
- I've also looked into the
Authorization
header. When I send the API key in the way I believe is correct (and which worked previously), I receive the "Incorrect or expired API Key" error. - As a test, if I try sending the request without what I believe to be the correct encoding/formatting for the key in the header, I instead get a "You do not have permission to perform this operation" error. This suggests the API is reacting differently based on the Authorization header, but ultimately still failing with the "Incorrect or expired API Key" when the header is formatted as it was when it worked.
- I've also looked into the
- User Permissions: I've confirmed that the user account whose API key I'm using has administrator privileges.
- Testing with Other Admin Keys: To further isolate the problem, we've also tried:
- The API key from my colleague from Marketing who has an admin account on the client's instance.
- An API key from one of the client's own administrator user accounts.
Unfortunately, all these attempts with different admin API keys result in the same "Incorrect or expired API Key" error.

Has anyone else experienced a similar sudden issue, or does anyone have suggestions on what else we could check? Could there be an instance-specific issue or a recent change we might be unaware of?
Thanks in advance for any insights!