# Basic Auth access denied

**URL:** https://forum.mautic.org/t/basic-auth-access-denied/19827
**Category:** Product Support
**Created:** [June 13, 2021, 8:47am UTC](https://forum.mautic.org/t/basic-auth-access-denied/19827 "2021-06-13T08:47:47Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![robm](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/robm/32/260_2.png) [@robm](https://forum.mautic.org/u/robm)
#### Post date: [June 13, 2021, 8:47am UTC](https://forum.mautic.org/t/basic-auth-access-denied/19827/1 "2021-06-13T08:47:47Z")

</div>

**Your software**  
My Mautic version is: 3.3.3  
My PHP version is: 7.3.28  
My Database type and version is: msql 5.7.34

**Your problem**  
My problem is: I cannot get Basic Auth to work. I am trying to inject a payload from a webhook into mautic.

[https://user:password@mautic](https://user:password@mautic).\*\*\*_ **.** _/api/contacts/new

gives me

{“errors”:[{“message”:“API authorization denied.”,“code”:401,“type”:“access\_denied”}]}

Also

[https://mautic](https://mautic).\*\*\*_ **.** _/api/contacts?limit=1&minimal=1

gives me the same error. Which make me think something is up with the API

These errors are showing in the log:  
[13-Jun-2021 10:24:46 Africa/Johannesburg] PHP Warning: require(/home/\*\*\*_/var/cache/prod/ContainerL2gorhm/getRouting\_LoaderService.php): failed to open stream: No such file or directory in /home/**/var/cache/prod/ContainerL2gorhm/appProdProjectContainer.php on line 6126  
[13-Jun-2021 10:24:46 Africa/Johannesburg] PHP Fatal error: require(): Failed opening required '/home/**_/var/cache/prod/ContainerL2gorhm/getRouting\_LoaderService.php’ (include\_path=’.:/opt/alt/php73/usr/share/pear’) in /home/\*\*\*\*\*/var/cache/prod/ContainerL2gorhm/appProdProjectContainer.php on line 6126

Steps I have tried to fix the problem:  
Read every article on this on the forum and web. Enabled API. Tested API connection by making an integromat connection successfully. Cleared the cache. Enabled Basic Auth

---

<div class="post-metadata">

### Author: ![pierre\_a](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/pierre_a/32/7031_2.png) [@pierre\_a](https://forum.mautic.org/u/pierre_a)
#### Post date: [June 20, 2024, 1:40pm UTC](https://forum.mautic.org/t/basic-auth-access-denied/19827/2 "2024-06-20T13:40:26Z")

</div>

Hello @robm,

Have you found a solution yet?

Pierre
