Were you aware that you can use message tags for dynamic API driven content in the subject line of an email, as well as in URLs?

API Message Tags In Subject Lines

Luckily, if you've used API message tags in your messages, then using them in the subject line should be a breeze! Let's take a look at a typical example.

In your call to addDeliveries, you'll pass in the data for that API message tag just as you would with a tag in the body of the message. Hey, that was easy!

API Message Tags In URLs

Now let's see how to use data passed in via the API in a URL. A typical example use for this would be in a URL that requires some additional parameters, like a customer id. Let's take a look at a sample product review request message. We'll be using two normal API message tags, firstname and productname, and we'll also define a URL that includes API message tags for a product id and a customer id.

Notice that the base part of the URL is static, i.e. not populated by an API message tag. You'll want to follow the same guidelines as with using special and field tags in URLs if you want to make use of Bronto's built in link tracking. If you pass in the entire URL in your API call, we won't be able to track the link. While we would generate a link for a URL defined like href="%%#myurl%%", we would not be able track it.

Be sure to give these methods of using API message tags a try and let us know how it goes!

Alex Durzy
Support Engineer at Bronto