# Help with adding notes in Mautic

**URL:** <https://community.n8n.io/t/help-with-adding-notes-in-mautic/24908>\
**Category:** Questions\
**Tags:** rest-api, mautic\
**Created:** [April 6, 2023, 6:39am UTC](https://community.n8n.io/t/help-with-adding-notes-in-mautic/24908 "2023-04-06T06:39:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![L-Jo](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/l-jo/32/24074_2.png) [@L-Jo](https://community.n8n.io/u/L-Jo)\
**Post date:** [April 6, 2023, 6:39am UTC](https://community.n8n.io/t/help-with-adding-notes-in-mautic/24908/1 "2023-04-06T06:39:46Z")

</div>

I want to add notes to Mautic via n8n and I’m struggling with how to proceed. Since the Mautic integration doesn’t support notes I guess using the API is the solution.

Mautic has an example in PHP

```auto
<?php 

$contactID = 1;

$data = array(
    'lead' => $contactID,
    'text' => 'Note A',
    'type' => 'general',
);

$note = $noteApi->create($data);

```

Would it be possible to transform this to json use the update node contact node and update fields to create notes in Mautic from n8n?

---

<div class="post-metadata">

**Author:** ![MutedJam](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/mutedjam/32/70851_2.png) [@MutedJam](https://community.n8n.io/u/MutedJam)\
**Post date:** [April 12, 2023, 7:57am UTC](https://community.n8n.io/t/help-with-adding-notes-in-mautic/24908/2 "2023-04-12T07:57:46Z")

</div>

Hi @L-Jo, welcome to the community!

I am not very familiar with PHP, but it seems the code you have shared relies on `$noteApi` which isn’t defined in your snippet. From looking at [Mautic Developer Documentation](https://developer.mautic.org/?json#create-note) it looks like it’s as simple as making a `POST` request to `POST $yourMauticUrl/api/notes/new` with `text`, `type` and `datetime` parameters. Something like this:

Perhaps you can give this a go on your end?

---

<div class="post-metadata">

**Author:** ![L-Jo](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/l-jo/32/24074_2.png) [@L-Jo](https://community.n8n.io/u/L-Jo)\
**Post date:** [April 12, 2023, 3:36pm UTC](https://community.n8n.io/t/help-with-adding-notes-in-mautic/24908/3 "2023-04-12T15:36:16Z")

</div>

Thanks @MutedJam for getting me started on this (and for the welcome!)

It worked like a dream - one small change was necessary - which lead it is written to if someone else finds this (I guess that has to be modified to the application though):

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/system/32/195824_2.png) [@system](https://community.n8n.io/u/system)\
**Post date:** [July 11, 2023, 3:36pm UTC](https://community.n8n.io/t/help-with-adding-notes-in-mautic/24908/4 "2023-07-11T15:36:42Z")

</div>

Closed on July 11, 2023, 3:36pm UTC

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
