# Create contact from web hook

**URL:** <https://forum.mautic.org/t/create-contact-from-web-hook/26582>\
**Category:** Ideas and Feature Requests\
**Created:** [January 3, 2023, 1:25pm UTC](https://forum.mautic.org/t/create-contact-from-web-hook/26582 "2023-01-03T13:25:10Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![saikat](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/saikat/32/6368_2.png) [@saikat](https://forum.mautic.org/u/saikat)\
**Post date:** [January 3, 2023, 1:25pm UTC](https://forum.mautic.org/t/create-contact-from-web-hook/26582/1 "2023-01-03T13:25:10Z")

</div>

Listen to a web hook and create a contact from a web hook.

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [January 3, 2023, 1:34pm UTC](https://forum.mautic.org/t/create-contact-from-web-hook/26582/2 "2023-01-03T13:34:11Z")

</div>

You can’t do it directly. Mautic doesn’t accept webhooks without a Plugin.  
However instead of envoking a webhook you can make a proper API call and create a contact.  
[https://developer.mautic.org/](https://developer.mautic.org/)

OR you can create a form in Mautic with the fields you want and post to that form:

> <https://gist.github.com/escopecz/136f62b66d526bc32006f0d2358a8e15>

(Ajax Example)

---

<div class="post-metadata">

**Author:** ![saikat](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/saikat/32/6368_2.png) [@saikat](https://forum.mautic.org/u/saikat)\
**Post date:** [January 3, 2023, 1:38pm UTC](https://forum.mautic.org/t/create-contact-from-web-hook/26582/3 "2023-01-03T13:38:26Z")

</div>

Thank you for this clarification.

Is there any way to call a webhook with JSON payload?

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [January 3, 2023, 2:28pm UTC](https://forum.mautic.org/t/create-contact-from-web-hook/26582/4 "2023-01-03T14:28:49Z")

</div>

Not sure what you are asking.  
Which language are you using?

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [January 3, 2023, 2:31pm UTC](https://forum.mautic.org/t/create-contact-from-web-hook/26582/5 "2023-01-03T14:31:23Z")

</div>

Here is an example, with a webhook already.

> **[Process any webhook with Mautic (without Zapier) \[Updated!\] – Joey Keller](https://joeykeller.com/process-any-webhook-with-mautic-without-zapier/)**

---

<div class="post-metadata">

**Author:** ![saikat](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/saikat/32/6368_2.png) [@saikat](https://forum.mautic.org/u/saikat)\
**Post date:** [January 3, 2023, 2:49pm UTC](https://forum.mautic.org/t/create-contact-from-web-hook/26582/6 "2023-01-03T14:49:07Z")

</div>

I want to push contacts of a campaign to my billing system that accepts webhooks with JSON payload.

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [January 3, 2023, 3:07pm UTC](https://forum.mautic.org/t/create-contact-from-web-hook/26582/7 "2023-01-03T15:07:12Z")

</div>

Then you need an intermediate step.  
Use webhook action in the campaign builder.  
Create a script on your server, that accepts Mautic payload and send it further.

Joey
