# Mautic API not working, no oath folder in server

**URL:** <https://forum.mautic.org/t/mautic-api-not-working-no-oath-folder-in-server/14716>\
**Category:** Product Support\
**Created:** [June 9, 2020, 1:49am UTC](https://forum.mautic.org/t/mautic-api-not-working-no-oath-folder-in-server/14716 "2020-06-09T01:49:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ezzat](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ezzat/32/825_2.png) [@ezzat](https://forum.mautic.org/u/ezzat)\
**Post date:** [June 9, 2020, 1:49am UTC](https://forum.mautic.org/t/mautic-api-not-working-no-oath-folder-in-server/14716/1 "2020-06-09T01:49:13Z")

</div>

**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:

> **[Integration with Mautic for WooCommerce – Open Source Marketing Automation](https://wordpress.org/plugins/enhanced-woocommerce-mautic-integration/)**
>
> Mautic for WooCommerce Plugin Connects WooCommerce store to Open-Source Marketing Automation Platform Mautic

  
However, every time i try to authorize, I get a “404 not found” error. It seems like an issue with the installation [mymautic.com/oauth/v2/authorize](http://mymautic.com/oauth/v2/authorize) 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.

 ![Screen Shot 2020-06-08 at 8.49.37 PM](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/1/1b072afc6b587db125d8a0e01836d6ce1f6ecac3.png)
