Run Guardian checks on an email message
Email messages
Run Guardian checks on an email message
Run Guardian content validation on an email message and return errors and warnings before you publish or send.
GET
Run Guardian checks on an email message
Run the same Guardian checks that run in the Loops editor on a saved email message. Use this to validate campaign, workflow, and transactional email content before publishing or sending.
Checks depend on the email message’s parent type:
Only rules with at least one matching item are included. When both arrays are empty, all Guardian checks passed.
- Campaign validates contact properties and rendered links and buttons.
- Workflow validates contact properties, event properties from the workflow’s event trigger, and rendered links and buttons.
- Transactional validates data variables and rendered links and buttons.
- System transactional validates required data variables and rendered links and buttons.
This will not work on MJML email messages, as they are not supported in the API.
Request
Path parameters
The ID of the email message.
Response
Success
Guardian rules that failed as errors. Empty when all error checks pass.
Guardian rules that failed as warnings. Empty when all warning checks pass.
Each entry uses the same shape as entries in
errors.Error
A400 Bad Request is returned when emailMessageId is missing or invalid.
A 404 Not Found is returned if the email message does not exist.
A 409 Conflict is returned when the email message uses MJML format.
If the API key is invalid (or content API is not enabled for your team), a
401 Unauthorized is returned.
An error message describing what went wrong.
Last modified on July 2, 2026

