Mautic API not working, no oath folder in server

Your software
My Mautic version is: 2.16
My PHP version is: PHP Version 7.2.24

Your problem
My problem is: API not working

Hey everyone, so on my instance I’m trying to integrate mautic with woocommerce using this plug in:

However, every time i try to authorize, I get a “404 not found” error. It seems like an issue with the installation also returns 404 and in the folder there is no such oath folder…

I’m not sure what steps to take, all the threads that I encountered were fixed by clearing the cache but it is not the case in my scenario

These errors are showing in the log:

Steps I have tried to fix the problem:
Cleared the cache multiple times
For some reason every time i clear the cache I have to:
chmod -R 777 /var/www/html/
Or the site will stay down.