# API never worked

**URL:** https://forum.mautic.org/t/api-never-worked/10379
**Category:** Product Support
**Created:** [March 25, 2018, 8:47am UTC](https://forum.mautic.org/t/api-never-worked/10379 "2018-03-25T08:47:47Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![tiagogouvea](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/tiagogouvea/32/51_2.png) [@tiagogouvea](https://forum.mautic.org/u/tiagogouvea)
#### Post date: [March 25, 2018, 8:47am UTC](https://forum.mautic.org/t/api-never-worked/10379/1 "2018-03-25T08:47:47Z")

</div>

I’m feeling frustrated. It’s the third time I try to use mautic api and I just can’t. Please help me. ☹

First, get accessToken are painful, not because it’s hard to do (every oAuth process are the same), but because all code samples (from mautic github repo, from mautic blog) don’t work as expected. It is full of gotchas, I don’t know why.

Ok. Now I overcame the accessToken challenge and when I try to call api/contacts using the api-library, `$contactApi->getList();` I stuck on:

`Looks like I encountered an error (error #404). If I do it again, please report me to the system administrator!`

On server site I have no logs.

Do you can help-me with it?

It will be a dream when I see it running like expected! 😃

---

<div class="post-metadata">

### Author: ![tiagogouvea](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/tiagogouvea/32/51_2.png) [@tiagogouvea](https://forum.mautic.org/u/tiagogouvea)
#### Post date: [March 25, 2018, 9:11am UTC](https://forum.mautic.org/t/api-never-worked/10379/2 "2018-03-25T09:11:25Z")

</div>

After search little more, I clear the cache on server and it works.

Why not change the 404 error message to some like `clear your cache folder, it may solve many problens`…?

---

<div class="post-metadata">

### Author: ![bizcrony](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/bizcrony/32/409_2.png) [@bizcrony](https://forum.mautic.org/u/bizcrony)
#### Post date: [March 25, 2018, 11:21pm UTC](https://forum.mautic.org/t/api-never-worked/10379/3 "2018-03-25T23:21:36Z")

</div>

@tiagogouvea you getting this error while installting mautic?
