I resolved the issue by creating a new user. The main cause of the error was that I was using the same user that I use for the internal system to access the Metabase API. So, I created a user just to access the API and another user to access the system.