Send a single email to one recipient.
POST /api/email/send
Request body
{
"fromEmail": "you@yourdomain.com",
"toEmail": "recipient@example.com",
"subject": "Hello",
"content": "Hi there
",
"preheader": "Optional preview text"
}
Required fields
- fromEmail — Verified sender email address configured in your account
- toEmail — Recipient email (or use contactId instead)
- subject — Email subject line
- content — HTML email body
Optional fields
- preheader — Preview text shown in inbox
- contactId — Existing contact ID (alternative to toEmail)
Example
curl -X POST https://campaigns.crm-messaging.cloud/api/email/send \
-H "Authorization: Bearer YOUR_CRM_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"fromEmail": "you@yourdomain.com",
"toEmail": "recipient@example.com",
"subject": "Hello",
"content": "Hi there
"
}'
Success response
{
"success": true,
"message": "Email sent successfully",
"data": {
"contactId": "65a1b2c3d4e5f6789012345",
"toEmail": "recipient@example.com",
"fromEmail": "you@yourdomain.com"
}
}
+1 302 486 0000
+61 2 5129 0955
+44 7828 573520