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

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?

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.

@tomcopeland , @tominal

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

"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>"
 }

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.

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