API Errors
”Template not found”
Cause: The template ID doesn’t exist or doesn’t belong to your account.
Solutions:
- Verify the template ID is correct
- Check you’re using the right API key (same account as template)
- Ensure template wasn’t deleted
”Template not found in flow graph”
Cause: The template exists but isn’t added to the project’s flow.
Solutions:
- Open the project in the editor
- Add the template to the flow canvas
- Connect it to an output node
- Save the project
”Provider configuration not found”
Cause: The provider referenced in the flow doesn’t exist.
Solutions:
- Check the provider wasn’t deleted
- Add or reconfigure the provider in Settings
- Update the flow to use an existing provider
”_to is required for provider output”
Cause: You’re using a provider output but didn’t specify a recipient.
Solutions:
- Add
_toto your API request - Or switch to callback output if you don’t want to send
{
"templateId": "...",
"variables": {...},
"_to": "recipient@example.com"
}
”Invalid API key”
Cause: The API key is wrong, revoked, or malformed.
Solutions:
- Check the key in Settings > API Keys
- Regenerate if compromised
- Verify the
Authorizationheader format:Bearer your_key
Template Issues
Variables not being replaced
Symptoms: Seeing {{variableName}} in rendered output.
Causes & Solutions:
-
Spelling mismatch - Variable names are case-sensitive
- Template:
{{firstName}} - API:
{ "firstname": "..." }❌ - API:
{ "firstName": "..." }✓
- Template:
-
Wrong delimiter - Must be double curly braces
{name}❌{{name}}✓
-
Variable not in request - Add it or use a default
{{name|default}}uses “default” if not provided
Subject line not working
Cause: Subject priority confusion.
Priority order:
_subjectfrom API request (highest)- Subject set in template
- Template name (fallback)
Solution: Set subject in template or pass _subject in API.
Images not displaying
Causes:
- Image URL is broken or inaccessible
- URL is HTTP (some clients block)
- Image file is too large
Solutions:
- Verify URL loads in browser
- Use HTTPS URLs
- Optimize images (< 1MB recommended)
- Use reliable image hosting (CDN)
Provider Issues
”Sender not verified”
Cause: Email provider requires sender verification.
Solutions by provider:
- Resend: Verify domain in dashboard
- SendGrid: Complete sender authentication
- Postmark: Add sender signature
- AWS SES: Verify email or domain
”Rate limit exceeded”
Cause: Sending too fast for your plan.
Solutions:
- Implement rate limiting in your code
- Upgrade provider plan
- Add delays between sends
- Queue emails for gradual sending
”Authentication failed”
Cause: Provider credentials are wrong.
Solutions:
- Regenerate API key at provider
- Update credentials in mailshit Settings
- Check for typos or extra whitespace
Flow Issues
No output from flow
Cause: Template isn’t connected to an output node.
Solution:
- Open project flow editor
- Add Provider or Callback output node
- Connect template to output
- Save
Verification keeps failing
Causes:
- Invalid email format in
_to - Missing required fields
- Regex pattern mismatch
Solutions:
- Check the error message for which field failed
- Validate inputs before calling API
- Test with known-good values
Editor Issues
Can’t save template
Causes:
- Network connectivity issues
- Session expired
- Browser extension interference
Solutions:
- Check internet connection
- Refresh page and try again
- Disable ad blockers temporarily
- Try incognito mode
Preview not updating
Cause: Browser caching or state issue.
Solutions:
- Hard refresh:
Cmd/Ctrl + Shift + R - Clear browser cache
- Close and reopen editor
Getting Help
If these solutions don’t help:
- Check the full documentation
- Review error messages carefully
- Contact support at contact