# Getting started with Mautic API

**URL:** <https://forum.mautic.org/t/getting-started-with-mautic-api/20669>\
**Category:** Product Support\
**Tags:** mautic-3, mautic-4\
**Created:** [August 31, 2021, 9:49pm UTC](https://forum.mautic.org/t/getting-started-with-mautic-api/20669 "2021-08-31T21:49:06Z")\
**Posts on this page:** 1\
**Showing post:** 12

<div class="post-metadata">

**Author:** ![modifiedcontent](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/modifiedcontent/32/511_2.png) [@modifiedcontent](https://forum.mautic.org/u/modifiedcontent)\
**Post date:** [September 4, 2021, 12:26pm UTC](https://forum.mautic.org/t/getting-started-with-mautic-api/20669/12 "2021-09-04T12:26:20Z")

</div>

Trying a brute force approach; just putting this in the address bar:

[https://mysite.com/mautic/api/contacts/?clientKey=](https://mysite.com/mautic/api/contacts/?clientKey=)_actual\_key_&clientSecret=_actual\_secret_&id=243&firstname=Changedname

This results in the following:

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

What is the minimal example to communicate with the API?

Where are the PHP API files supposed to be? I see I don’t have a folder /api/ in my Mautic installation; which files should I upload where? Or are they somewhere else under another name?

Should I include the API with a line like this - from dodgy years old online info…:

require\_once ` __DIR__ ` . ‘/lib/Mautic/MauticApi.php’;

---

_[View the full topic](https://forum.mautic.org/t/getting-started-with-mautic-api/20669)._
