"Unauthorized" using newly generated API key


c++20 with boost

Alpaca SDK Version
Direct API access


I’m suddently getting “unauthorized” from API calls. I regenerated keys and still getting unauthed.

Perhaps due to an API change?

{“code”:40410000,“message”:“account not found for c6c9ac75-2a6f---**********”}

Paper or Live Tradng?

Note that trades in another account are working fine so it should not be my code. There is something wrong on your end regarding this specific account. Is there a way to have a secure discussion with Alpaca support? Thanks for all you guys are doing, I know it must be pure chaos for you lately, appreciate your efforts.

It was a bug in my code dealing with PRO vs FREE API. All is well now. Thanks all!