Mautic Community Forums

403 Error, API Basic Auth Access

Your software
My Mautic version is: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips
My PHP version is: 7.3.15

My problem is:
I’m getting 403 error when trying to connect to the Api Using the Basic Auth ,and it says that i dont have permission, and i’m quite sure that i’m using the right credentials, and i’m trying to do a call to get contacts,
and the same Credentials are working fine to access the mautic platform,
get …/api/contacts

<title>403 Forbidden</title>
<h1>Forbidden</h1>

<p>You don't have permission to access /api/contacts

    on this server.</p>

These errors are showing in the log: when i do the call to the API

Steps I have tried to fix the problem:
I have restarted my comptuer , and removed all the cash and cookies

You need to refresh Mautic cache after basic auth is turned on.

Hello, Thank you for your prompt reply,
we have cleared the Mautic cache but still getting same error,