Skip to main content
Level 2
May 13, 2022 1:03 AM UTC
Question

Create Marketo Email Template Asset via Postman

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

7 replies

Jo_Pitts1
Community Advisor
Community Advisor
May 13, 2022 4:11 AM UTC

@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

Translate
Jo_Pitts1
Community Advisor
Community Advisor
May 13, 2022 4:21 AM UTC

@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

Translate
SaraUsmanAuthor
Level 2
May 17, 2022 1:48 AM UTC

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.



Translate
Jo_Pitts1
Community Advisor
Community Advisor
May 17, 2022 2:36 AM UTC

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 </>).

 

 

Translate