Personalization Tags in custom html via API getting encoded and not replaced on send

We are uploading html_content via the create/update endpoints for campaigns

POST /emails and PUT /emails/activities/{campaign_activity_id}

 

We have links within our html that use custom fields as params.

ex.

<a href="https://mywebsite.com?custom_param=[[custom.custom_attr]]">Cool Link</a>

 

Our problem is the brackets in anchor tags are being url encoded.

ex.

`<a href="https://mywebsite.com?custom_param=%5B%5Bcustom.custom_attr%5D%5D">Cool Link</a>`

So, when the email is sent the value isn't replaced. 

Webinar

Is your small business or nonprofit losing time and engagement to outdated or confusing social media advice? April 23, 2026 2:00 pm ET

Popular Posts:

The world's largest virtual email marketing conference. November 12-13th.