# Creating Note via API with Multiple Lines

**URL:** <https://forum.mautic.org/t/creating-note-via-api-with-multiple-lines/26399>\
**Category:** Product Support\
**Created:** [December 13, 2022, 3:40pm UTC](https://forum.mautic.org/t/creating-note-via-api-with-multiple-lines/26399 "2022-12-13T15:40:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ajtatum](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ajtatum/32/8891_2.png) [@ajtatum](https://forum.mautic.org/u/ajtatum)\
**Post date:** [December 13, 2022, 3:40pm UTC](https://forum.mautic.org/t/creating-note-via-api-with-multiple-lines/26399/1 "2022-12-13T15:40:38Z")

</div>

**Your software**  
My Mautic version is: 4.4.5  
My PHP version is: 7.4.3  
My Database type and version is: MySQL 8.0.30  
Installation Method: Installed via [Cloudron](https://docs.cloudron.io/apps/mautic/)

**Your problem**  
My problem is: I’m currently using [Make.com](http://Make.com) to integrate my WordPress forms with Mautic as I would like to use Mautic for sending newsletters and as a basic CRM. When someone submits a contact form, they’re added to the “Contacts” segment and if they checked that they want to subscribe they also get added to the “Newsletter” segment.

Anyways, on the contact form, the user can leave a message which I would like to have added as a note in Mautic categorized as an “Email”.

So, in [Make.com](http://Make.com) I have it call the API endpoint “/notes/new” as there isn’t an official Notes integration. I’ve specified the content-type as application/json and for the body I have the following:

```auto
{"lead": {{2.id}}, "type": "email", "text": "{{10.text}}"}

```

Originally I had it passing in the original value of the contact form, but it would error because there were new lines in message. So, I added a “Text parser” module to replace new lines with:

```auto
\r\n\r\n

```

This allows the message to get posted into Mautic, but it doesn’t create the new lines. Instead, the message appears as one line of text in Mautic.

How can I make it so that new lines appear in Mautic?

Steps I have tried to fix the problem:  
I’ve contacted [Make.com](http://Make.com) support and they investigated the issue and said they read Mautic’s API documentation as well, but weren’t sure why the line breaks weren’t being preserved/respected.

Any help or advice would be greatly appreciated!

Thanks,  
AJ

---

<div class="post-metadata">

**Author:** ![ncmon](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ncmon/32/11887_2.png) [@ncmon](https://forum.mautic.org/u/ncmon)\
**Post date:** [May 13, 2024, 4:01pm UTC](https://forum.mautic.org/t/creating-note-via-api-with-multiple-lines/26399/2 "2024-05-13T16:01:16Z")

</div>

Hi ajtatum.

Did you manage to get a solution?

---

<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:** [May 14, 2024, 6:52am UTC](https://forum.mautic.org/t/creating-note-via-api-with-multiple-lines/26399/3 "2024-05-14T06:52:51Z")

</div>

FYI: Doesn’t work for now. Mautic API doesn’t support it.
