Skip to main content
Solved

Create Universal saved content through api


Forum|alt.badge.img+2
  • Problem Solver I
  • 14 replies

Is there anyway to create and save universal content through the api? We would like to create reusable product blocks for our customers as universal content that can be easily dropped into email campaign templates if possible.

Best answer by retention

Hi @obviyo, as far as I know, that can’t be done yet. 

Specifically, the current Template API as far as I know, only interacts with HTML based templates and not Klaviyo’s “drag an drop” templates. You can “render” a drag and drop template into HTML, but it doesn’t go the other way around.

So we don’t even have an API to create drag and drop templates programmatically, let alone re-usable Universal Blocks.  I’m hoping that will be on the roadmap too!

View original
Did this topic or the replies in the thread help you find an answer to your question?

3 replies

retention
Partner - Platinum
Forum|alt.badge.img+62
  • 2025 Champion
  • 949 replies
  • Answer
  • August 5, 2024

Hi @obviyo, as far as I know, that can’t be done yet. 

Specifically, the current Template API as far as I know, only interacts with HTML based templates and not Klaviyo’s “drag an drop” templates. You can “render” a drag and drop template into HTML, but it doesn’t go the other way around.

So we don’t even have an API to create drag and drop templates programmatically, let alone re-usable Universal Blocks.  I’m hoping that will be on the roadmap too!


Forum|alt.badge.img+2
  • Author
  • Problem Solver I
  • 14 replies
  • August 6, 2024

Agreed! Both an API to create drag and drop templates programmatically and an API to interact with Universal Blocks would be very useful for the integration community.


Kim Strauch
Klaviyo Employee
Forum|alt.badge.img+9
  • Klaviyo Employee
  • 91 replies
  • August 16, 2024

Hey @obviyo and @retention, we just released Universal Content APIs into public beta yesterday, which support creating universal content text blocks via API!

Creating a Klaviyo "product block" is not supported at this time, but can be approximated with custom HTML via a text block

See the API reference docs here (https://developers.klaviyo.com/en/reference/create_universal_content ) and + our changelog here  (https://developers.klaviyo.com/en/docs/changelog_#universal-content-api