How to reference Transaction Email API message_data in liquid?

  • 14 March 2023
  • 2 replies

I’m trying to use this endpoint to send transactional emails to end users. 

Each email has the following unique metadata:

  • URL
  • String

The documentation linked above mentions using message_data → liquid_data in order to pass data through to the template. 

But I can’t figure out how to reference the message_data object using liquid from the template edit screen. 

How do I reference the message_data field from the API in the template?

2 replies

Userlevel 3

Hey Matrix,

I am not a developer, so this might no be useful (or too obvious for a solution 😀)  but have you tried this:

{{ trigger.message_data.url }}


What excatly have you tried already?


Userlevel 2

Howdy! Popping in as a Technical Support Engineer to say Felix is right on the money. To reference data within a transactional message, it will need to be formatted as