# Mautic API Basic auth - cant get it to work

**URL:** https://forum.mautic.org/t/mautic-api-basic-auth-cant-get-it-to-work/30472
**Category:** Product Support
**Created:** [January 12, 2024, 10:07am UTC](https://forum.mautic.org/t/mautic-api-basic-auth-cant-get-it-to-work/30472 "2024-01-12T10:07:22Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![mtic](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mtic/32/627_2.png) [@mtic](https://forum.mautic.org/u/mtic)
#### Post date: [January 12, 2024, 10:07am UTC](https://forum.mautic.org/t/mautic-api-basic-auth-cant-get-it-to-work/30472/1 "2024-01-12T10:07:22Z")

</div>

**Your software**  
My Mautic version is: 4.4  
My PHP version is: 8.0  
My Database type and version is: Maria 10

**Your problem**  
My problem is:  
When trying to connect to the API with Pabbly or Zapier via Basic Auth I can’t write new contacts.

Pabbly can connect and fetch the fields, but it cannot write.

These errors are showing in the log:  
Pabbly says:  
`{ "errors > 0 > code": 400, "errors > 0 > message": "verifizierung: Dieses Feld ist erforderlich", "errors > 0 > details > verifizierung > 0": "Dieses Feld ist erforderlich" }`

translation: verification is required

Steps I have tried to fix the problem:  
Activated Basic Auth  
Cleared Cache 100 times  
Set app/config/sequrity.php to:  
‘api’ =\> [  
‘pattern’ =\> ‘^/api’,  
‘fos\_oauth’ =\> false,  
‘mautic\_plugin\_auth’ =\> false,  
‘stateless’ =\> true,  
‘http\_basic’ =\> true,

I cannot get this to work, stuck since 4 days.  
Any ideas anyone?

---

<div class="post-metadata">

### Author: ![silavapi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/silavapi/32/7424_2.png) [@silavapi](https://forum.mautic.org/u/silavapi)
#### Post date: [January 12, 2024, 1:45pm UTC](https://forum.mautic.org/t/mautic-api-basic-auth-cant-get-it-to-work/30472/2 "2024-01-12T13:45:13Z")

</div>

Do you have any other security software on the domain - e.g. wordfence, mod\_security - which might be blocking these requests?

---

<div class="post-metadata">

### Author: ![mtic](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mtic/32/627_2.png) [@mtic](https://forum.mautic.org/u/mtic)
#### Post date: [January 12, 2024, 2:22pm UTC](https://forum.mautic.org/t/mautic-api-basic-auth-cant-get-it-to-work/30472/3 "2024-01-12T14:22:58Z")

</div>

Thank you. Not to my knowing, but I will check, I did not think about that at all.
