Easy way to post/route leads

Is there an easy way to post leads into, as well as route leads out of Mautic via posting strings’s, etc? For example, instead of using preset integrations, can I simply enter posting URL’s for where I would like a new lead to be pushed to? Thanks!

Is there an easy way to post leads into, as well as route leads out of Mautic via posting strings’s, etc? For example, instead of using preset integrations, can I simply enter posting URL’s for where I would like a new lead to be pushed to? Thanks!

Hi Castline:

I want to make sure I understand the question here: are you asking if there’s a way that via campaign action a lead’s data would sent to a URL via an HTTP POST request? For example:

Campaign
-> Lead Opens Email
-> http POST lead info to http://my-api-endpoint.com/lead-update

Hi, thanks for your quick reply!

Yes, exactly - currently I only see options to post to an integration, but not through an HTTP Post request, or posting url. For example, if I have a lead buyer that gives me a HTTP Post url (ie: http://buyer.com/post.php?first_name=name…), I would like to post my leads in mautic to them if an action occurs.

Thanks again!

So currently no, we don’t have anything like that.

It’s possible this might help you:

https://www.mautic.org/community/index.php/254-zapier-integration

It’s a Zapier integration which allows for integrations to be easily written with lots of different services.

The “right” way to do with you want is with a custom addon which has a action for campaigns and pulls in the lead and then sends it off to the URL you want.

That said, what you’re suggesting is a really neat idea. Basically a ‘webhook’ which will just take a set of any variables you want, eg:

‘myCustomAppFirstName’ => [firstname}
‘myCustomAppLastName’ => [lastname}

Then we just ship that off to whatever URL is provided in the lead config and let the receiving application deal with it. While it’s not something that will be done immediately, I think it something Mautic should have!

Thanks Chad. The link in the zapier thread no longer works (goes to a dead zapier page). I’ll keep digging on the issue. Thanks again, Eric

If you want to go down the addon route, you’ll be able to do this:

http://mautic.github.io/developer-documentation/#addons

Then add a campaign action:
http://mautic.github.io/developer-documentation/#extending-campaigns

The Campaign action Callback will be a PHP file where you will have the lead returned as an object. You can then do whatever you want with that lead info like generate a custom POST request to anywhere you want.