Is there an API method for reading To, From, Subject, Preheader by email message ID? | Community
Skip to main content
MarketoSupport
Level 2
October 4, 2024
Solved

Is there an API method for reading To, From, Subject, Preheader by email message ID?

  • October 4, 2024
  • 1 reply
  • 1385 views

I want to use the Marketo API to display the content of an email message by providing the email ID. 

I can retrieve the HTML of the message easily, and display that, but I also want to display the values of To:, From:, Subject and Preheader, ex: fromName, fromEmail, subject, preHeader.

 

The only methods I see that have access to these is "Update Email Metadata", "Update Email Content", and "Create Email".

 

Is there an undocumented way to simply read those additional values, or something I'm missing?

 

The goal is to be able to provide a preview of the email body and the other information via a single preview link, rather than having to resort to sending test messages to people we need reviews and approvals from. The existing method of sending links to "view online" versions of the previews also excludes the other values that need review. 

 

Maybe there's a much easier solution?

 

Thanks!

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by SanfordWhiteman

https://developer.adobe.com/marketo-apis/api/asset/#tag/Emails/operation/getEmailByIdUsingGET

 

Also I assume you mean Reply-To:, not To:.

1 reply

SanfordWhiteman
SanfordWhitemanAccepted solution
Level 10
October 5, 2024
MarketoSupport
Level 2
October 8, 2024

Thanks! That got me what I needed to access the other values.

I would have found that if the Response Schema weren't hidden inside accordions.