Mailing API: preheader information

  • 1
  • Problem
  • Updated 1 year ago
  • Solved
Hello, I am looking at the mailing API documentation and it doesn't appear that the preheader text is available. Is there any way to get the preheader text through the API that I might be missing? Thanks in advance.
Photo of Josué F. Machado

Josué F. Machado, Champion

  • 76 Posts
  • 49 Reply Likes

Posted 1 year ago

  • 1
Photo of Kyle Gregory | Lipscomb University

Kyle Gregory | Lipscomb University, Champion

  • 99 Posts
  • 69 Reply Likes
Hey @Josué F. Machado

Doesn't look like preheader information is included in a element within the JSON of either: GET /#account_id/mailings or GET /#account_id/mailings/#mailing_id. If you know what you're looking for, you might be able to strip it from the html_body element or the plaintext element. In my case, it's inserted just  after the opening body tag within a hidden div in the HTML one, and is the first line in the plaintext element.

Hope that helps,
Kyle
Photo of Josué F. Machado

Josué F. Machado, Champion

  • 76 Posts
  • 49 Reply Likes
Hi Kyle, this is very helpful. Thank you.