# Error when I try to create new contact via API

**URL:** <https://forum.mautic.org/t/error-when-i-try-to-create-new-contact-via-api/33436>\
**Category:** Product Support\
**Created:** [September 11, 2024, 5:53am UTC](https://forum.mautic.org/t/error-when-i-try-to-create-new-contact-via-api/33436 "2024-09-11T05:53:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![romancretnik](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/romancretnik/32/12427_2.png) [@romancretnik](https://forum.mautic.org/u/romancretnik)\
**Post date:** [September 11, 2024, 5:53am UTC](https://forum.mautic.org/t/error-when-i-try-to-create-new-contact-via-api/33436/1 "2024-09-11T05:53:48Z")

</div>

**Your software**  
My Mautic version is: 4.4.12  
My PHP version is: 7.4  
My Database type and version is: 10.6.19-MariaDB-log - MariaDB Server

I have Mautic on my server, which the client would like to connect via an API to another program. When this program tries to connect to retrieve data, it works fine. However, when it tries to create new contacts via the API, it receives the response ‘The response has unexpected status code (403). Response: 403 Forbidden. Request forbidden by administrative rules.’  
Any ideas what should I do to fix this error?

My API settings: [screenshot-raac.itmelona.com-2024.09.11-07\_49\_57 - FuseBase Capture](https://nimb.ws/PcMs5nU)  
Checked OAuth 2 credentials

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [September 11, 2024, 2:38pm UTC](https://forum.mautic.org/t/error-when-i-try-to-create-new-contact-via-api/33436/2 "2024-09-11T14:38:27Z")

</div>

Refresh the cache. And try again.  
Might work, if not let’s continue.
