# API error with Mautic automateplus

**URL:** <https://forum.mautic.org/t/api-error-with-mautic-automateplus/10144>\
**Category:** Product Support\
**Created:** [January 19, 2018, 6:00am UTC](https://forum.mautic.org/t/api-error-with-mautic-automateplus/10144 "2018-01-19T06:00:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![joykingwar](https://avatars.discourse-cdn.com/v4/letter/j/9de053/32.png) [@joykingwar](https://forum.mautic.org/u/joykingwar)\
**Post date:** [January 19, 2018, 6:00am UTC](https://forum.mautic.org/t/api-error-with-mautic-automateplus/10144/1 "2018-01-19T06:00:46Z")

</div>

a while ago i created the api credentials with auth2 type, and it worked fine with the automate plus wordpress plugin ( [https://wordpress.org/plugins/automate-mautic/](https://wordpress.org/plugins/automate-mautic/) ) that helps in importing registered users automatically from my wordpress site to my mautic self-hosted installation… after some months when i tried the same thing with another wordpress site it gives me an error, and when i disabled it for the first site where it worked fine and tried to re-enable it again, it also failed to integrate this time. Below is the error that is being returned in my browser:

_{“errors”:[{“message”:“The redirect URI provided does not match registered URI(s).”,“code”:400,“type”:“redirect\_uri\_mismatch”}],“error”:“redirect\_uri\_mismatch”,“error\_description”:“The redirect URI provided does not match registered URI(s). (`error` and `error_description` are deprecated as of 2.6.0 and will be removed in 3.0. Use the `errors` array instead.)”}_

and the error i’m getting in the mautic error-log file from my cpanel (/mauti/app/logs/mautic\_prod-2018-01-19.php) is below:

_mautic.NOTICE: Swift\_TransportException: Expected response code 220 but got code “”, with message “” (uncaught exception) at /mautic/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/AbstractSmtpTransport.php line 383 while running console command `mautic:emails:send` [] []_

anyone to assist?

---

<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:** [January 20, 2018, 2:42am UTC](https://forum.mautic.org/t/api-error-with-mautic-automateplus/10144/2 "2018-01-20T02:42:26Z")

</div>

Have you upgrade your WordPress recently ?

What WordPress version you have? It seems your WordPress version issue.

why don’t you create and API credentials again and of-course delete the plugin from back-end and again install then integrate with your mautic API, it should work…

If not that read automate-plus WordPress plugin documentation , might be WordPress version issue.
