SendLit logoSendLit Docs
Developers

API errors

Stable template and sending error codes.

SendLit returns JSON errors with a stable error string. Clients should branch on the code rather than human-readable descriptions.

StatusErrorMeaning
422template_not_transactionalPOST /emails received a marketing template.
422template_not_marketingA broadcast or sequence received a transactional template.
422missing_template_variablesRequired Liquid paths were absent from variables.
422template_conversion_requires_changesMarketing-only references remain outside the managed footer.
422footer_requiredMarketing content does not contain exactly one final managed footer.
422footer_not_allowedTransactional content contains a managed footer.
422marketing_variables_not_allowedTransactional content references marketing-owned values.

Missing and conversion errors include the affected paths:

{
    "error": "missing_template_variables",
    "missingVariables": ["customer.name", "otp"]
}
{
    "error": "template_conversion_requires_changes",
    "variables": ["subscriber.name"]
}

All template-purpose, structural, and missing-variable checks happen before an email is queued. A rejected request does not create a partial destination template or transactional delivery.