Broadcast messages must include an unsubscribe_url.
Sendzovo uses this URL to add the email's
List-Unsubscribe header.
If you send through a Broadcast Message Stream without
unsubscribe_url, the Send API returns a
validation error.
Show an unsubscribe link inside a template
To display the unsubscribe link in the visible email body,
add an {{unsubscribe_url}} variable to your template:
<a href="{{unsubscribe_url}}">Unsubscribe</a>
Then provide the URL both as the top-level
unsubscribe_url and as a value in
template_model.
{
"message_stream": "broadcast",
"template": "newsletter",
"unsubscribe_url": "https://example.com/unsubscribe/abc123",
"template_model": {
"unsubscribe_url": "https://example.com/unsubscribe/abc123"
}
}
The top-level value supplies the List-Unsubscribe header.
The value inside template_model replaces
{{unsubscribe_url}} in the template content.
Sendzovo does not currently copy the top-level value into
template variables automatically.
Create a free Sendzovo account, verify your domain and send your first email in minutes.