# Zapier integration

**URL:** <https://forum.mautic.org/t/zapier-integration/1717>\
**Category:** 3rd Party Addons\
**Created:** [April 3, 2015, 10:18pm UTC](https://forum.mautic.org/t/zapier-integration/1717 "2015-04-03T22:18:07Z")\
**Posts on this page:** 20\
**Page:** 7

<div class="post-metadata">

**Author:** ![zpetterd](https://avatars.discourse-cdn.com/v4/letter/z/f14d63/32.png) [@zpetterd](https://forum.mautic.org/u/zpetterd)\
**Post date:** [May 3, 2016, 7:57pm UTC](https://forum.mautic.org/t/zapier-integration/1717/121 "2016-05-03T19:57:48Z")

</div>

@marzio, it is highly unlikely that I will be able to add the add a tag action due to my workload. As I said in the PM, it would likely be easier to use site tracking or simulating a form submission instead of Zapier. How are you going to even trigger the app from your site??

---

<div class="post-metadata">

**Author:** ![marzio](https://avatars.discourse-cdn.com/v4/letter/m/ed655f/32.png) [@marzio](https://forum.mautic.org/u/marzio)\
**Post date:** [May 8, 2016, 7:50am UTC](https://forum.mautic.org/t/zapier-integration/1717/122 "2016-05-08T07:50:33Z")

</div>

The trigger will be a sale on my site. I think i’ll follow your advice and i’ll use site tracking or use some sort of form submission. Thanks

---

<div class="post-metadata">

**Author:** ![startfinance](https://avatars.discourse-cdn.com/v4/letter/s/d07c76/32.png) [@startfinance](https://forum.mautic.org/u/startfinance)\
**Post date:** [May 9, 2016, 1:09am UTC](https://forum.mautic.org/t/zapier-integration/1717/123 "2016-05-09T01:09:22Z")

</div>

Many thanks @zpetterd the Zap works like a charm.

I agree it would be epic to have access to tags through Zapier, but you can only do what your workload allows, fair enough.

On another note, is it possible to edit an existing lead via Zapier? For example adding a lead with the same email etc just a different field (say, phone number) and Mautic would recognise it is an existing lead and edit it, rather than create a new one? Or any other way to edit leads via Zapier?

---

<div class="post-metadata">

**Author:** ![mendesws](https://avatars.discourse-cdn.com/v4/letter/m/dc4da7/32.png) [@mendesws](https://forum.mautic.org/u/mendesws)\
**Post date:** [May 10, 2016, 9:03am UTC](https://forum.mautic.org/t/zapier-integration/1717/124 "2016-05-10T09:03:21Z")

</div>

It’s not working for me. I have done everything but when I try to “Connect a New Account” a new window is opened and I fill the informations (domain, public and secret key), the page is redirected to “[http://mkt.aiesec-sa.tk](http://mkt.aiesec-sa.tk)/oauth/v2/authorize\_login” and ask my credentials (login and password), after I login, a new Mautic’s page apper telling me “404 Not found - The page that I’m trying to access does not exist” ([http://mkt.aiesec-sa.tk/oauth/v2/authorize?client\_id=55ogjjtd7gw84gogwkoso8848o8owwgc4gss00s0gg0c000cck&redirect\_uri=https%3A%2F%2Fzapier.com%2Fdashboard%2Fauth%2Foauth%2Freturn%2FApp37497API%2F&response\_type=code&state=1462875360.3296338](http://mkt.aiesec-sa.tk/oauth/v2/authorize?client_id=55ogjjtd7gw84gogwkoso8848o8owwgc4gss00s0gg0c000cck&redirect_uri=https%3A%2F%2Fzapier.com%2Fdashboard%2Fauth%2Foauth%2Freturn%2FApp37497API%2F&response_type=code&state=1462875360.3296338)).

What should I do to solve this problem?

---

<div class="post-metadata">

**Author:** ![startfinance](https://avatars.discourse-cdn.com/v4/letter/s/d07c76/32.png) [@startfinance](https://forum.mautic.org/u/startfinance)\
**Post date:** [May 11, 2016, 12:45am UTC](https://forum.mautic.org/t/zapier-integration/1717/125 "2016-05-11T00:45:01Z")

</div>

HI (again 🙂

Does anyone have any advise on how to use the Add to List zap? It is very straightforward but it presumes one knows the lead ID beforehand. Since the zap does not have Search actions, has anyone used this zap and/or have a recommendation how to obtain the lead ID dynamically within Zapier?

I am trying to trigger a Campaign once the lead is created via Zapier but there are no triggers available for “New Lead” (only joined list or form submitted) so the only workaround I can think of is to join them to a list through Zapier. Any ideas how to trigger the campaign after they are created via Zapier would be enormously welcome!

Thanks!

---

<div class="post-metadata">

**Author:** ![zpetterd](https://avatars.discourse-cdn.com/v4/letter/z/f14d63/32.png) [@zpetterd](https://forum.mautic.org/u/zpetterd)\
**Post date:** [May 12, 2016, 12:05am UTC](https://forum.mautic.org/t/zapier-integration/1717/126 "2016-05-12T00:05:32Z")

</div>

@mendesws I’m not real sure what is happening there. Try going through all the steps again making sure that you copy and past the callback URI into Mautic correctly.

@startfinance There is a New lead trigger there, as has been recently mentioned there is a “Find a lead” search which you could use to find the leads ID. The other option is to add the lead using Zapier while also adding a tag to them which then adds them to the list and then campaign.

---

<div class="post-metadata">

**Author:** ![startfinance](https://avatars.discourse-cdn.com/v4/letter/s/d07c76/32.png) [@startfinance](https://forum.mautic.org/u/startfinance)\
**Post date:** [May 12, 2016, 1:37am UTC](https://forum.mautic.org/t/zapier-integration/1717/127 "2016-05-12T01:37:20Z")

</div>

Thanks @zpetterd

> [@](#):
>
> The other option is to add the lead using Zapier while also adding a tag to them which then adds them to the list and then campaign

That is exactly what I’d like to do, I am actually creating the lead via Zapier. But how would you advise to add the tag on the same zap? As far as I can see, there is no way to add tags via Zapier? Secondly, how would I add them to the list once they had the tag, before they can trigger a Campaign process?

Sorry to bombard you, I understand you’re a volunteer, but your advice will be enormously appreciated.

---

<div class="post-metadata">

**Author:** ![startfinance](https://avatars.discourse-cdn.com/v4/letter/s/d07c76/32.png) [@startfinance](https://forum.mautic.org/u/startfinance)\
**Post date:** [May 12, 2016, 1:47am UTC](https://forum.mautic.org/t/zapier-integration/1717/128 "2016-05-12T01:47:37Z")

</div>

… also, I have read in your last comment and a few older comments about Search. I can’t find it? I have setup a test Zap with NEW LEAD as trigger and then ADD LEAD TO LIST as action but can’t see where Search is? It should normally be after choosing the action but it’s not there. Am I looking in the wrong place?

---

<div class="post-metadata">

**Author:** ![zpetterd](https://avatars.discourse-cdn.com/v4/letter/z/f14d63/32.png) [@zpetterd](https://forum.mautic.org/u/zpetterd)\
**Post date:** [May 15, 2016, 9:56pm UTC](https://forum.mautic.org/t/zapier-integration/1717/129 "2016-05-15T21:56:05Z")

</div>

@startfinance are you using the integration called “Mautic API V2”. You are correct that you should see the option to search when on the action screen. There is two versions as Zapier updated their API and a number of people are still using the old version.

I got myself confused about tags, using search would be the best way of achieving what you want

---

<div class="post-metadata">

**Author:** ![startfinance](https://avatars.discourse-cdn.com/v4/letter/s/d07c76/32.png) [@startfinance](https://forum.mautic.org/u/startfinance)\
**Post date:** [May 15, 2016, 10:29pm UTC](https://forum.mautic.org/t/zapier-integration/1717/130 "2016-05-15T22:29:07Z")

</div>

@zpetterd many thanks. Yes I was using the original integration, I hadn’t taken the new invitation etc. It seems all good now, will now tinker with it a little bit. Thanks again!

---

<div class="post-metadata">

**Author:** ![startfinance](https://avatars.discourse-cdn.com/v4/letter/s/d07c76/32.png) [@startfinance](https://forum.mautic.org/u/startfinance)\
**Post date:** [May 16, 2016, 12:17am UTC](https://forum.mautic.org/t/zapier-integration/1717/131 "2016-05-16T00:17:27Z")

</div>

Further to the last comment. Do you have any pointers how to use the Search option? It says

[quote]Search text  
The search term you would use in Mautic to find the lead[/quote]

I tried

> [@](#):
>
> [email=me@here.com](mailto:email=me@here.com)

and other variations but no luck. What should the syntax look like?

---

<div class="post-metadata">

**Author:** ![zpetterd](https://avatars.discourse-cdn.com/v4/letter/z/f14d63/32.png) [@zpetterd](https://forum.mautic.org/u/zpetterd)\
**Post date:** [May 16, 2016, 12:20am UTC](https://forum.mautic.org/t/zapier-integration/1717/132 "2016-05-16T00:20:50Z")

</div>

It uses thr exact same format as the search in Mautic so you would need to use `email:me@here.com`

---

<div class="post-metadata">

**Author:** ![startfinance](https://avatars.discourse-cdn.com/v4/letter/s/d07c76/32.png) [@startfinance](https://forum.mautic.org/u/startfinance)\
**Post date:** [May 16, 2016, 12:40am UTC](https://forum.mautic.org/t/zapier-integration/1717/133 "2016-05-16T00:40:45Z")

</div>

Thanks.

Although in the Action’s test it keeps returning always the same lead ID, regardless. of the search. For example I search for

```auto
email:me@here.com
```

```auto
email:me@there.com
```

`email:me@nowhere.com` (one that I know does not even exist on the database)

and they all return the same ID. Is this the expected behaviour on the test?

---

<div class="post-metadata">

**Author:** ![startfinance](https://avatars.discourse-cdn.com/v4/letter/s/d07c76/32.png) [@startfinance](https://forum.mautic.org/u/startfinance)\
**Post date:** [May 19, 2016, 10:44pm UTC](https://forum.mautic.org/t/zapier-integration/1717/134 "2016-05-19T22:44:21Z")

</div>

Hi @zpetterd

Has the Zap changed lately? My ADD LEAD TO A LIST actions are failing to retrieve the Lead ID from a previous CREATE LEAD action. This worked just fine a few days ago. Any clues?

[link text](https://snag.gy/I0E2uV.jpg)

1. I create the lead (using Auth 2.0 and Zap v2), it goes well, creates it just fine
2. Next action I want to retrieve the lead id to add the lead to a list, this worked OK recently but now seems to return a 404

The connection is working well, otherwise it would not have created the lead, plus, this exact setup worked well just a few days ago.

I am panicking

---

<div class="post-metadata">

**Author:** ![startfinance](https://avatars.discourse-cdn.com/v4/letter/s/d07c76/32.png) [@startfinance](https://forum.mautic.org/u/startfinance)\
**Post date:** [May 19, 2016, 11:02pm UTC](https://forum.mautic.org/t/zapier-integration/1717/135 "2016-05-19T23:02:31Z")

</div>

I tried doing a Search action in the meantime while the usual procedure worked but it seems to not be accurate either. I searched for an email address in my list: [rach.el.jm.3.test@gmail.com](mailto:rach.el.jm.3.test@gmail.com) (which is obviously unique in the database) and it returns the ID of a different lead. It doesn’t happen with other searches. I believe the dots in the email address are causing the problem? Same thing happened with another email that also had a dot in it.

---

<div class="post-metadata">

**Author:** ![startfinance](https://avatars.discourse-cdn.com/v4/letter/s/d07c76/32.png) [@startfinance](https://forum.mautic.org/u/startfinance)\
**Post date:** [May 19, 2016, 11:09pm UTC](https://forum.mautic.org/t/zapier-integration/1717/136 "2016-05-19T23:09:06Z")

</div>

… actually no email search is accurate, regardless of the dots or no dots.

---

<div class="post-metadata">

**Author:** ![zpetterd](https://avatars.discourse-cdn.com/v4/letter/z/f14d63/32.png) [@zpetterd](https://forum.mautic.org/u/zpetterd)\
**Post date:** [July 7, 2016, 10:38pm UTC](https://forum.mautic.org/t/zapier-integration/1717/137 "2016-07-07T22:38:58Z")

</div>

I’ve found one problem that is a Mautic core problem so I have created a issue about it on GitHub here [https://github.com/mautic/mautic/issues/1982](https://github.com/mautic/mautic/issues/1982)  
The fix is now pending release [https://github.com/mautic/mautic/pull/1961](https://github.com/mautic/mautic/pull/1961)

This has generally broken the create/update functionality.

Hopefully that is the source of the problems, if the problem that everyone was having on v1.4 occurs again there isn’t much I can do without some debugging by someone who is having the problem as it was working on our install.

---

<div class="post-metadata">

**Author:** ![chrisdutra](https://avatars.discourse-cdn.com/v4/letter/c/b4bc9f/32.png) [@chrisdutra](https://forum.mautic.org/u/chrisdutra)\
**Post date:** [July 7, 2016, 5:15pm UTC](https://forum.mautic.org/t/zapier-integration/1717/138 "2016-07-07T17:15:42Z")

</div>

Not working here. ☹

DataPostError: Problem creating item. (authorization failed: [mail.oficinaderedacao.com](http://mail.oficinaderedacao.com) returned (404) Not Found and said "URL requerida não encontrada: /api/leads?

---

<div class="post-metadata">

**Author:** ![Tricia](https://avatars.discourse-cdn.com/v4/letter/t/919ad9/32.png) [@Tricia](https://forum.mautic.org/u/Tricia)\
**Post date:** [July 6, 2016, 10:51am UTC](https://forum.mautic.org/t/zapier-integration/1717/139 "2016-07-06T10:51:30Z")

</div>

Thanks for the quick reply @zpetterd!

But it is still not working, I added brand new credentials on both instances with the new callback URI and I’m getting the same error messages. Tried several times after clearing cache too.

(Account with version 1.2.4 still connected and working)

Is there something else I should try or do?

---

<div class="post-metadata">

**Author:** ![Tricia](https://avatars.discourse-cdn.com/v4/letter/t/919ad9/32.png) [@Tricia](https://forum.mautic.org/u/Tricia)\
**Post date:** [July 5, 2016, 9:29pm UTC](https://forum.mautic.org/t/zapier-integration/1717/140 "2016-07-05T21:29:05Z")

</div>

@zpetterd

I am also experiencing error messages and trouble reconnecting on a self-hosted 1.4.1 instance and a hosted instance. One Mautic Zap pushes new form submissions from JotForm to Mautic and the other pushes new leads created in Sugar and has been working fine until today.

Callback URI is [https://zapier.com/dashboard/auth/oauth/return/App37497API/](https://zapier.com/dashboard/auth/oauth/return/App37497API/) on both instances, on self-hosted instance I get:  
Mautic API V2: [siteurlselfhosted.com](http://siteurlselfhosted.com) returned (500) Internal Server Error and said nothing

on hosted instance I get:  
Mautic API V2: [siteurlhosted.com](http://siteurlhosted.com) returned (404) Not Found and said nothing

(updated API keys and still getting errors)

Interestingly, I also use the zap on an instance that still has 1.2.4 and that connection still works.

Should I reach out to Zapier or JotForm support?

[Previous page](https://forum.mautic.org/t/zapier-integration/1717.md?page=6)

[Next page](https://forum.mautic.org/t/zapier-integration/1717.md?page=8)
