Paper account: account is not authorized to trade

Hello,

I have seen similar thread but there is no answer. I started experimenting with the paper trading account today. I submitted two orders, and then this error occured:
APIError: account is not authorized to trade

Can’t use Alpaca anymore. Help please!

Hi @Qualia - Are you using a Paper trading key, or the live account key?

Do you mind pasting a sample of your API call + payload?

Nevermind, I generated new API keys, and it worked again!