Email messages

Run Guardian checks on an email message

Validate an email message's content against Guardian rules and return any errors and warnings. Errors must be resolved before the email can be published, warnings are advisory.

get/v1/email-messages/{emailMessageId}/guardian

Response

Successful.

Example response

{
  "errors": [
    {
      "rule": "missingButtonHrefs",
      "title": "Missing button link",
      "description": "Buttons won't work without href value",
      "items": [
        {
          "label": "Click here"
        }
      ]
    },
    {
      "rule": "missingLinkHrefs",
      "title": "Missing text link",
      "description": "Links won't work without href value",
      "items": [
        {
          "label": "See more"
        }
      ]
    }
  ],
  "warnings": []
}

Changes

Changed in 1 of the 10 revisions of this API.1

Of the 10 revisions, 1 has no diff computed.