Send an email to a single recipient, audience, or tag. All sends are queued for background delivery and return immediately with status ‘queued’. You can provide a conversationId instead of template and projectId — the API resolves both from the conversation. Single-recipient sends are automatically treated as transactional (no List-Unsubscribe headers); batch sends default to marketing. Use the transactional flag to override. Requires API key with EMAIL_SEND.
API key authentication. Use 'Authorization: Bearer YOUR_API_KEY' where YOUR_API_KEY is obtained from the Migma dashboard under Settings → API Integration.
Type of recipient. 'email' for single send, 'audience' or 'segment' for segment-based batch sends, 'tag' for tag-based batch sends.
email, audience, segment, tag Sender email address (must be from a verified domain)
Sender display name
Required for audience/segment/tag sends. The segment or tag ID.
Required for single email sends.
Email HTML template. Required unless conversationId is provided, in which case the template is resolved from the conversation.
Template variables for personalization
Email service provider to send through. Defaults to Migma's built-in sending. To use an external provider, connect it first in Settings → Integrations → Email Providers.
ses, resend, sendgrid, mailgun, migma Project ID. Required unless conversationId is provided, in which case the projectId is resolved from the conversation.
Conversation ID from a generated email. When provided, template and projectId are resolved automatically from the conversation.
Controls whether the email is treated as transactional (order confirmations, password resets) or marketing. Defaults to true for single sends (recipientType 'email') and false for batch sends (recipientType 'audience', 'segment', 'tag'). Transactional emails bypass subscription status and topic preference filters, and omit List-Unsubscribe headers. Bounced and invalid addresses are always excluded. Set explicitly to override the default.