# Markdown/syntax to follow when creating engagements via the API?

**URL:** <https://community.hubspot.com/t/markdown-syntax-to-follow-when-creating-engagements-via-the-api/32960>\
**Category:** APIs & Integrations\
**Tags:** timeline-and-extensions-apis\
**Created:** [March 10, 2021, 2:24pm UTC](https://community.hubspot.com/t/markdown-syntax-to-follow-when-creating-engagements-via-the-api/32960 "2021-03-10T14:24:52Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![tomcopeland](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/tomcopeland/32/28756_2.png) [@tomcopeland](https://community.hubspot.com/u/tomcopeland)\
**Post date:** [March 10, 2021, 2:24pm UTC](https://community.hubspot.com/t/markdown-syntax-to-follow-when-creating-engagements-via-the-api/32960/1 "2021-03-10T14:24:52Z")

</div>

Hello, I am dynamically creating engagements via the API - specifically, a note. The metadata object contains a simple text json body, but I am trying to create multiple lines, so my json is:

“metadata”: {  
“body”: “When would you like to come in? Today\nGoogle Ads Keywords: Auto Accident Injury”  
}

But the little “\n” line breaker isn’t working, so now I’m not sure what syntax this relies on. Can someone point me to the correct resource, or does it only post plain, unformatted text?

---

<div class="post-metadata">

**Author:** ![tominal](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/tominal/32/73018_2.png) [@tominal](https://community.hubspot.com/u/tominal)\
**Post date:** [March 10, 2021, 2:53pm UTC](https://community.hubspot.com/t/markdown-syntax-to-follow-when-creating-engagements-via-the-api/32960/2 "2021-03-10T14:53:13Z")

</div>

I am also curious as well. If you format a note in the UI and then do a GET request to view the engagement over the API, what do you get back? Maybe that will shed some light on what syntax they’re using if they’re allowing us to use one at all.

---

<div class="post-metadata">

**Author:** ![dennisedson](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dennisedson/32/28044_2.png) [@dennisedson](https://community.hubspot.com/u/dennisedson)\
**Post date:** [March 10, 2021, 5:06pm UTC](https://community.hubspot.com/t/markdown-syntax-to-follow-when-creating-engagements-via-the-api/32960/3 "2021-03-10T17:06:18Z")

</div>

@tomcopeland , @tominal

Try wrapping in an html tag. Here is an example:

```lia-code-sample
"metadata": {
 "body": "<html>\n <head></head>\n <body>\n <p>this is a note that i am taking</p> \n <p>this is a new line</p> \n <p>this is <strong>bold</strong></p> \n <p><strong><a href=\"https://www.hubspot.com/\" target=\"_blank\">i am a link in bold</a></strong></p>\n </body>\n</html>"
 }

```

---

<div class="post-metadata">

**Author:** ![tominal](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/tominal/32/73018_2.png) [@tominal](https://community.hubspot.com/u/tominal)\
**Post date:** [March 10, 2021, 11:30pm UTC](https://community.hubspot.com/t/markdown-syntax-to-follow-when-creating-engagements-via-the-api/32960/4 "2021-03-10T23:30:30Z")

</div>

I’ll have to give that a try next time I’m in the office. I assumed that we would have to pass in data via an “html” attribute similar to the email engagement.

---

<div class="post-metadata">

**Author:** ![tominal](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/tominal/32/73018_2.png) [@tominal](https://community.hubspot.com/u/tominal)\
**Post date:** [March 11, 2021, 8:53pm UTC](https://community.hubspot.com/t/markdown-syntax-to-follow-when-creating-engagements-via-the-api/32960/5 "2021-03-11T20:53:53Z")

</div>

Nice! It works. Definitely going to use this method in the future to update a couple projects.
