Send Email
Send one generated email to a single recipient, audience, segment, or tag. Provide emailId to send a specific email from a conversation or series. conversationId remains supported for single-email conversations. All sends are queued for background delivery and return immediately with status queued. Single-recipient sends are transactional by default; batch sends default to marketing. Requires API key with email:send.
Authorizations
API key authentication. Use 'Authorization: Bearer YOUR_API_KEY' where YOUR_API_KEY is obtained from the Migma dashboard under Settings → API Integration.
Body
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.
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. Optional when emailId or conversationId resolves the project automatically.
Conversation ID from a generated email. Works for single-email conversations. For series, use emailId.
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.
Generated email ID from result.emails[].emailId. Recommended for all generated emails and required for series slots.