# Twig Templates plugins

**URL:** <https://forum.mautic.org/t/twig-templates-plugins/24544>\
**Category:** General Discussion\
**Tags:** integrations-plugins\
**Created:** [June 22, 2022, 11:06am UTC](https://forum.mautic.org/t/twig-templates-plugins/24544 "2022-06-22T11:06:47Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![kixell](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/kixell/32/7238_2.png) [@kixell](https://forum.mautic.org/u/kixell)\
**Post date:** [June 22, 2022, 11:06am UTC](https://forum.mautic.org/t/twig-templates-plugins/24544/1 "2022-06-22T11:06:47Z")

</div>

Hi,

with this plugin Twig Templates for Mautic [Twig Templates for Mautic – Mautic Extendee](https://mtcextendee.com/marketplace/twig-templates-for-mautic/)  
We can call external url ? And if so, do you know how to do this ?  
For example, call an URL that return JSON

Best

---

<div class="post-metadata">

**Author:** ![kixell](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/kixell/32/7238_2.png) [@kixell](https://forum.mautic.org/u/kixell)\
**Post date:** [June 22, 2022, 11:34am UTC](https://forum.mautic.org/t/twig-templates-plugins/24544/3 "2022-06-22T11:34:02Z")

</div>

# Twig Templates API support

[https://mtcextendee.com/2021/05/12/1791/](https://mtcextendee.com/2021/05/12/1791/)

but how ?

---

<div class="post-metadata">

**Author:** ![steverobinson](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/steverobinson/32/174_2.png) [@steverobinson](https://forum.mautic.org/u/steverobinson)\
**Post date:** [June 22, 2022, 4:59pm UTC](https://forum.mautic.org/t/twig-templates-plugins/24544/4 "2022-06-22T16:59:50Z")

</div>

Hi @kixell - We do exactly this. We use a Mautic campaign action to post a webhook to zapier and then call the api via zapier because the mautic campaign action to call a webhook is not compatible with all api endpoints. All you have to do is put the token you’d put in an email into the field values you’re passing to the api.

---

<div class="post-metadata">

**Author:** ![kixell](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/kixell/32/7238_2.png) [@kixell](https://forum.mautic.org/u/kixell)\
**Post date:** [June 24, 2022, 6:28am UTC](https://forum.mautic.org/t/twig-templates-plugins/24544/5 "2022-06-24T06:28:37Z")

</div>

Ok, thus I started on pushing by cron (using API) any TwigTemplate with desired data.  
It works like a charm

---

<div class="post-metadata">

**Author:** ![kixell](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/kixell/32/7238_2.png) [@kixell](https://forum.mautic.org/u/kixell)\
**Post date:** [June 24, 2022, 1:23pm UTC](https://forum.mautic.org/t/twig-templates-plugins/24544/6 "2022-06-24T13:23:40Z")

</div>

hey not fully, now adding HTML in template property does not work 😕

---

<div class="post-metadata">

**Author:** ![kixell](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/kixell/32/7238_2.png) [@kixell](https://forum.mautic.org/u/kixell)\
**Post date:** [June 24, 2022, 1:43pm UTC](https://forum.mautic.org/t/twig-templates-plugins/24544/7 "2022-06-24T13:43:31Z")

</div>

@kuzmany any helps ?

---

<div class="post-metadata">

**Author:** ![dandumit](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/dandumit/32/6497_2.png) [@dandumit](https://forum.mautic.org/u/dandumit)\
**Post date:** [March 1, 2023, 4:19am UTC](https://forum.mautic.org/t/twig-templates-plugins/24544/8 "2023-03-01T04:19:41Z")

</div>

@kixell have you found an answer to your question ? I have bought the plugin as well but I have no reference / documentation about calling api from TWIG
