Validates links that are inside the provided HTML. This method automatically takes out links from the HTML block and validates them. Use this method when you want to check whether the link complies with the abuse rules and can be used in a campaign.
You can only call this method when authenticated as a Wix app or Wix user identity.
HTML string with links.
Non-valid links.
curl -X POST 'https://www.wixapis.com/email-marketing/v1/campaign-validation/validate-html-links' \
-H 'Content-Type: application/json' \
-H 'Authorization: <AUTH>'
-d '{
"html": """<a href="http://paypal-security-alert.com/login">Click here!</a><a href="http://www.amaz0n-support.com/refund">More info</a>"""
}' \
{
"blacklistedLinks": [
"http://paypal-security-alert.com/login",
"http://www.amaz0n-support.com/refund"
]
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.