Create Marketo Email Template Asset via Postman | Community
Skip to main content
New Participant
May 13, 2022
Question

Create Marketo Email Template Asset via Postman

  • May 13, 2022
  • 2 replies
  • 3359 views

Hi.
I am trying to create Email Templates at Marketo using API, ref:
https://developers.marketo.com/rest-api/endpoint-reference/asset-endpoint-reference/
It creates the email Template but it does not render the html code. Why is that? For example: a simple html like this:

<!DOCTYPE html> <html> <body> <h1>My First Heading</h1> <p>My first paragraph.</p> </body> </html>


wont get rendered at Marketo when I open it in preview or edit mode.
Is it necessary to add "Marketo-specific syntax" to the HTML? 
Please see this loom for clarity on the issue: https://www.loom.com/share/9ed952a0b1364b2cb5a73c864ac6413b

2 replies

Jo_Pitts1
Community Manager
May 13, 2022

@SaraUsman ,

Some other silly thoughts:

  1. Grab the code from a simple starter template, and post that back in, and see what happens.  
  2. Have you tried posting from postman to ptsv2.com/ or a similar site.
  3. If you go to edit the template, what are the contents of it?

Cheers

Jo

SaraUsmanAuthor
New Participant
May 17, 2022

Hi,
Yes I did try taking a started template html code and posting it back via postman. Here are the results:
The started template created at Marketo 'today01', has html like this:

This is the preview:

I copied this html and used postman to create a template, "today02", and here is what the html looks like:

Posted template preview:

It looks like the html is not the same, but I dont understand why would it be edited when sent via postman.



Jo_Pitts1
Community Manager
May 17, 2022

Now you're confusing things.

Show me:

  1. The original template code. 
  2. The Postman payload.
  3. The newly created template.

Don't paste screenshots.  Paste actual code using the code highlighter (click ... then </>).

 

 

Jo_Pitts1
Community Manager
May 13, 2022

@sarausman ,

what are you posting in via Postman?

Can you use the Code highlighter when you submit please?

To access, click here

then here

 

Cheers

Jo