Email messages

Run Guardian checks on an email message

Changed on

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

Request

  • Base URL
    https://app.loops.so/api
  • Auth
    HTTP bearer

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