Send Email
Emails
Send Email
Send transactional email
POST
Send Email
Send an email using raw content or a pre-built template.Documentation Index
Fetch the complete documentation index at: https://docs.mailbreeze.com/llms.txt
Use this file to discover all available pages before exploring further.
Request Body
Sender email address. Must match a verified domain. Supports display name format:
"Name" <email@domain.com>Recipient email address(es). If array, all recipients see each other (single email, not batch).
Email subject line (max 998 characters, no newlines). Required unless using a template.
HTML content of the email. Required if not using
templateId.Plain text fallback content.
Template ID to use instead of raw
html/text. Subject comes from template unless overridden.Key-value pairs for template variable substitution (
{{variable}}).IDs of attachments to include (from the attachments upload flow).
CC recipients.
BCC recipients.
Reply-to email address.
Custom email headers to include.
Unique key to prevent duplicate sends. Valid for 24 hours, max 256 characters.
Content Options
You must provide content in one of two ways: Option 1: Direct ContentExamples
Response
Unique email ID.
Current status:
queued, sent, delivered, bounced, or failed.SMTP message ID.
ISO 8601 timestamp when queued.
Success Response
Test Mode Response
When using a test API key (sk_test_*), emails are simulated:
Sandbox Response
SDKs automatically extract the
data field, so you access result.messageId directly.Errors
| Code | Description |
|---|---|
DNS_VERIFICATION_FAILED | Domain DNS records not verified |
DOMAIN_VALIDATION_FAILED | Domain not active or verified |
FROM_DOMAIN_MISMATCH | From address domain must match verified domain |
TEMPLATE_NOT_FOUND | Template ID doesn’t exist |
TEMPLATE_RENDER_ERROR | Template variable substitution failed |
ATTACHMENT_NOT_FOUND | Attachment ID doesn’t exist |
ATTACHMENT_TOO_LARGE | Attachment exceeds 10MB limit |
EMAIL_TOO_LARGE | Total email exceeds 10MB limit |
SPAM_SCORE_TOO_HIGH | Content flagged as spam |
RECIPIENT_SUPPRESSED | Recipient is on suppression list |