# Send raw data with "Send a webhook" campaign action

**URL:** <https://forum.mautic.org/t/send-raw-data-with-send-a-webhook-campaign-action/25021>\
**Category:** Product Support\
**Tags:** mautic-4\
**Created:** [August 11, 2022, 12:29pm UTC](https://forum.mautic.org/t/send-raw-data-with-send-a-webhook-campaign-action/25021 "2022-08-11T12:29:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Marc\_1](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/marc_1/32/6285_2.png) [@Marc\_1](https://forum.mautic.org/u/Marc_1)\
**Post date:** [August 11, 2022, 12:29pm UTC](https://forum.mautic.org/t/send-raw-data-with-send-a-webhook-campaign-action/25021/1 "2022-08-11T12:29:48Z")

</div>

**Your software**  
My Mautic version is: 4.4.0  
My PHP version is: 7.4.29  
My Database type and version is: 10.4.25-MariaDB

**Your problem**  
My problem is:

For a certain webhook POST i need to make i need to send the data value RAW as follows, they do any escaping of special characters at their end:

**Desired situation:**

```auto
"text": "Hallo Marc,\n\ntest"

```

Which would result in:

```auto
Hallo Marc,

Test

```

Unfortunately, when i test my send a webhook action i receive the data as follows:

```auto
"text": "Hallo Marc,\\n\\ntest"

```

Is there a possibility to not escape any special characters by Mautic?

---

<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:** [August 11, 2022, 2:35pm UTC](https://forum.mautic.org/t/send-raw-data-with-send-a-webhook-campaign-action/25021/2 "2022-08-11T14:35:09Z")

</div>

That sounds like a security risk to me.

---

<div class="post-metadata">

**Author:** ![Marc\_1](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/marc_1/32/6285_2.png) [@Marc\_1](https://forum.mautic.org/u/Marc_1)\
**Post date:** [August 11, 2022, 2:54pm UTC](https://forum.mautic.org/t/send-raw-data-with-send-a-webhook-campaign-action/25021/3 "2022-08-11T14:54:22Z")

</div>

Hi Joey,

I got this working with Zapier Custom Request webhook but now want to switch to Mautic.

The endpoint gives me the following instructions:

“text” – a plain text UTF-8 encoded message to be sent (no markdown supported, except “\n” line separator)

But the resulting webhook POST by Mautic changes it to \ \n, while i need send “\n”. The result is that \n is being echo’d out and not processed.

The text is always the same, only gets added the name of the contact.

---

<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:** [August 11, 2022, 5:19pm UTC](https://forum.mautic.org/t/send-raw-data-with-send-a-webhook-campaign-action/25021/4 "2022-08-11T17:19:49Z")

</div>

Hey,  
I’m not sure why Mautic is doing this. Let’s home soneone who understand webhooks better can chime in.
